| Age | Commit message (Collapse) | Author |
|
DatabaseName::validDBName to isValid
SERVER-77345: Split/Moved unit test from namespaceString to DatabaseNmae
|
|
|
|
Co-authored-by: Mohammad Dashti <mdashti@gmail.com>
|
|
We incorrectly checked for _id with alreadyHasOwnField, instead of
hasOwnField, which caused us to miss _id fields set from c++.
|
|
Remove leading comments that are just stating the filename.
Move any file-level comments below the copyright banner.
Remove leading blank lines.
|
|
|
|
|
|
|
|
collections are unsharded
|
|
|
|
|
|
|
|
This ensures that we will have assertions in place for the correct locks
being held.
|
|
* Make the getProperty function more efficient by not reading out
_fullName if we don't have an opcontext.
* Delay grabbing the parent prototype
* hasOwnField in places we can use it
* Better Id management (less string conversion)
|
|
Rather than supplying const char*'s throughout our use of the MozJS api,
intern the strings and root their associated ids (to save on string
parsing).
|
|
This constrains universal access to wraptype methods by providing a
JS_ATTACH_JS_CONSTRAINED_METHOD() macro which allows for a list of types
that are allowed to call said method.
In this way we can lock down all methods without having to add uasserts
to each individual method body.
|
|
pre-emptive string creation
The current SpiderMonkey implementation preemptively generates a string
for the IdWrapper of JSid. This id->std::string conversion is expensive
and is quite often unnecessary. By delaying the creation of the string
until after checking that it is absolutely necessary, we can improve
SpiderMonkey performance on the shell by about 20%.
Signed-off-by: Adam Midvidy <amidvidy@gmail.com>
|
|
Provides SpiderMonkey 38.0.1esr as a JS engine for mongo and mongod.
|