mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
Limit the number of pooled objects
This commit is contained in:
@@ -463,8 +463,8 @@ pub const Fetch = struct {
|
||||
reject: js.JSObjectRef = null,
|
||||
context: FetchTaskletContext = undefined,
|
||||
|
||||
const Pool = ObjectPool(FetchTasklet, init, true);
|
||||
const BodyPool = ObjectPool(MutableString, MutableString.init2048, true);
|
||||
const Pool = ObjectPool(FetchTasklet, init, true, 32);
|
||||
const BodyPool = ObjectPool(MutableString, MutableString.init2048, true, 8);
|
||||
pub const FetchTaskletContext = struct {
|
||||
tasklet: *FetchTasklet,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user