Program optimization should not attempt to fight against hardware.
one loop thread, the time taken has already been at the microsecond level, switching servers resulted in a backlog of up to 60,000 packets, to almost none.
In single-threaded loop processing data scenarios, the CPU performance depends on factors such as clock frequency, cache size, and instruction set architecture. Generally, CPUs with higher clock frequencies, larger caches, and more advanced instruction set architectures perform better in single-threaded data processing.
Single-Threaded Performance improvements aren’t always achieved by adding threads; it’s not necessary to overcomplicate things.
Prompt Engineer
Just as we needed to learn the techniques of searching engines back then, we also need to learn some techniques for communicating with AI, providing reasonable and sufficient constraints, and efficiently obtaining the answers we need. If you look at it from a different angle, current AI is like a very good student with excellent memory – it has the ability to memorize everything. What we need to do is
WeChat Mini Program Background and Development Environment
WeChat Mini Program Introduction and Development Preparation Why Mini Programs Exist Better Experience: Slow web loading and blank screens; native app experience is faster. Standards & Management: For WeChat, onboarding and management Before mini programs were released, WeChat published an SDK called JSDk to open up some of the original WeChat capabilities: WeChat Pay, coupons. However, developers used web development languages to develop logic, bypassing some WeChat regulations. Mini Programs
Office migration, the servers are inaccessible.
Administrative notice, office relocation from the second floor to the fifteenth floor – a standard, routine desk move.
Design Sense Migration Closing up shop, packing everything away, a familiar route, a new workstation – adjusting computer cabling, finding a comfortable posture to start working. (ÒωÓױ)! – Connecting the network cable, the servers frequently used by the team were inaccessible. I tried switching to wireless networking, and access was normal again.
Embedded Systems – Getting Started Part 1 – Technical Terms
Here’s the English translation:
“When I think of embedded systems, my mind immediately goes back to the 51-pin single-chip microcomputers and Texas Instruments we used in university labs.
LPA3399Pro is a visual host developed on the HiSilicon RK3399Pro platform, designed for portable computing hosts that require extensive visual computation. It features an integrated NPU compute unit with 3.0 TOPS of processing power and supports various algorithm models.
RV1109 is HiSilicon’s SoC for machine vision within its AI branch, featuring a dedicated NPU.
AI-assisted programming, the evolution of productivity
“GitHub Copilot” was released less than two years ago, and “ChatGPT” has appeared. I don’t fully understand the underlying principles; I’ve been using them for a while. The two tools’ levels of assistance are completely different, but they have both
A Collection of Less Commonly Used Git Commands
Less commonly used, but very useful git commands
Reinstalling the system caused changes to folder ownership on Windows. The new version of git has added security checks, prompting an unsafe state and preventing further operation.
git config --global --add safe.directory git config --global --add safe.directory "*" New Computer Saving Account Password Information git config --global credential.helper store If the saved information needs to be updated, first clear out the old credentials
- Compiler
- Callback Function
- Performance Testing
Last year, an SDK was designed to handle encapsulating certain events and provide a class interface externally. During service initialization, the caller implements the corresponding classes and passes the object pointer to the module. Familiarity with C11 piqued my curiosity, leading me to explore what would happen if these interfaces were implemented using lambda function objects instead of pure virtual function definitions. Compared to the traditional interface definition method, it seemed more flexible.