diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-10-18 11:44:45 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-18 17:49:03 -0400 |
commit | d534ea41adb9c8fe4b434eee30a709e0b45097f1 (patch) | |
tree | 6b67c2923fbed66131d1012d9ec8af4df1dfb266 /libdeno/internal.h | |
parent | 3a226f166fef38829810fb8813b46dee73c83005 (diff) |
Optimization: Use std::map for tracking zero-copy buffers
Instead of V8 map.
Diffstat (limited to 'libdeno/internal.h')
-rw-r--r-- | libdeno/internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdeno/internal.h b/libdeno/internal.h index 02945dd2f..2093725b9 100644 --- a/libdeno/internal.h +++ b/libdeno/internal.h @@ -2,6 +2,7 @@ #ifndef INTERNAL_H_ #define INTERNAL_H_ +#include <map> #include <string> #include "deno.h" #include "third_party/v8/include/v8.h" @@ -22,7 +23,7 @@ struct deno_s { int32_t pending_promise_events; v8::Persistent<v8::Context> context; - v8::Persistent<v8::Map> async_data_map; + std::map<int32_t, v8::Persistent<v8::Value>*> async_data_map; deno_recv_cb cb; int32_t next_req_id; void* user_data; |