Skip to content

Commit 5b7bac9

Browse files
authored
feat: Update to launchdarkly-eventsource 2.0.0. (#199)
The event source update changes the way allocations are handled when receiving a line over multiple chunks. Instead of concatenating buffers together as they are received, instead an exponential doubling capacity algorithm will be used to allocate buffers to which multiple chunks may be copied. The algorithm will double until the excess capacity allocated reaches 1MiB. At that point subsequent re-allocations will allocate at maximum 1MiB of extra capacity. Generally this will decrease the total number of temporary objects generated when handling stream updates. For those with large SDK payloads this should decrease memory pressure.
1 parent 35a0ba7 commit 5b7bac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sdk/server-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"dependencies": {
4949
"@launchdarkly/js-server-sdk-common": "1.0.6",
5050
"https-proxy-agent": "^5.0.1",
51-
"launchdarkly-eventsource": "^1.4.4"
51+
"launchdarkly-eventsource": "2.0.0"
5252
},
5353
"devDependencies": {
5454
"@types/jest": "^29.4.0",

0 commit comments

Comments
 (0)