Copilot 3e2ea85f5a Replace NativeString heap allocations with thread-local pool allocator (#1263)
* Initial plan

* Update NativeString callers to use new NativeStringContext parameter

Add NativeStringContext nativeStringContext; as the first local variable
in each function containing NativeString constructions, and pass it as
the first argument to each NativeString constructor.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com>

* Add NativeStringContext and update NativeString to use pool allocation in Utilities.h

Agent-Logs-Url: https://github.com/uNetworking/uWebSockets.js/sessions/0a6be420-47f1-4fb3-a5d5-55f6d09eb1b5

Co-authored-by: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com>
2026-03-29 21:06:04 +02:00
2024-06-16 08:07:26 +02:00
2025-11-05 19:42:03 +01:00
2026-03-20 20:10:50 +01:00
2018-11-04 00:11:12 +01:00
2018-11-15 16:01:49 +01:00
2021-10-24 23:10:33 +02:00


Simple, secure1 & standards compliant2 web server for the most demanding3 of applications. Read more...


Simple performance

µWebSockets.js is a standards compliant web server written in 10,000 lines of C++. It is exposed to Node.js as a simple-to-use, native V8 addon and performs at least 10x that of Socket.IO, 8.5x that of Fastify. It makes up the core components of Bun and is the fastest standards compliant web server in the TechEmpower (not endorsed) benchmarks.

We aren't in the NPM registry but you can easily install it with the NPM client:

  • npm install uNetworking/uWebSockets.js#v20.61.0
  • Browse the documentation and see the main repo. There are tons of examples but here's the gist of it all:

🎯 In essence

Untitled

🤝 Permissively licensed

Intellectual property, all rights reserved.

Where such explicit notice is given, source code is licensed Apache License 2.0 which is a permissive OSI-approved license with very few limitations. Modified "forks" should be of nothing but licensed source code, and be made available under another product name. If you're uncertain about any of this, please ask before assuming.

Languages
C++ 88.3%
C 9.6%
JavaScript 1.9%
Makefile 0.2%