Compile SQLite with SQLITE_OMIT_SHARED_CACHE#6569
Conversation
|
No idea why the latest commit in |
There was a problem hiding this comment.
I'm Bonk, and I've done a quick review of your PR.
This PR contains two separate changes: (1) compiling SQLite with SQLITE_OMIT_SHARED_CACHE, and (2) plumbing a ResourceLimits struct through the dynamic worker loading API. The PR title/description only describes change (1).
-
[MEDIUM]
limitsparameter is silently ignored inserver.c++. BothgetEntrypoint()andgetActorClass()accept the newkj::Maybe<ResourceLimits> limitsparameter but never use it. Similarly,DynamicWorkerSource.limitsis populated but never read when constructing theWorkerDefinWorkerStubImpl::start()(line ~4194). A user passinglimits: { cpuMs: 100 }would get no effect and no error. If this is intentional plumbing for a future feature, it should be documented. If it's meant to work now, the implementation is missing. -
[LOW] Generated TypeScript interface
workerdResourceLimitsuses lowercase first letter. This is the only interface in the entire generated types file that starts with a lowercase letter, becauseResourceLimitsis registered viaworkerd::ResourceLimits(parent namespace) rather thanapi::ResourceLimits. Consider adding aJSG_STRUCT_TS_OVERRIDEor moving the struct into theapinamespace.
This review was generated by an AI assistant and may contain inaccuracies.
|
The review was posted successfully with both inline comments. Here's a summary of the review I posted on PR #6569: Two findings:
The SQLite |
8b54888 to
809bf0a
Compare
This change compiles SQLite with SQLITE_OMIT_SHARED_CACHE. From the docs:
Usage of the shared cache is also incompatible with our memory metering implementation, #6380.