8000 Improve performance of generating JS class from Metadata by ammarahm-ed · Pull Request #1824 · NativeScript/android · GitHub
[go: up one dir, main page]

Skip to content

Improve performance of generating JS class from Metadata #1824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jan 19, 2025
Merged
Prev Previous commit
Next Next commit
fix: use const parameter when checking namespace is js keyword
  • Loading branch information
ammarahm-ed committed Oct 8, 2024
commit 440bac2b9b2bb95802a3c901bd31ed5284b8c55b
2 changes: 1 addition & 1 deletion test-app/runtime/src/main/cpp/MetadataNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1984,7 +1984,7 @@ void MetadataNode::EnableProfiler(bool enableProfiler) {
s_profilerEnabled = enableProfiler;
}

bool MetadataNode::IsJavascriptKeyword(std::string word) {
bool MetadataNode::IsJavascriptKeyword(const std::string &word) {
static set<string> keywords;

if (keywords.empty()) {
Expand Down
2 changes: 1 addition & 1 deletion test-app/runtime/src/main/cpp/MetadataNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class MetadataNode {

MetadataNode(MetadataTreeNode* treeNode);

static bool IsJavascriptKeyword(std::string word);
static bool IsJavascriptKeyword(const std::string &word);
v8::Local<v8::Object> CreatePackageObject(v8::Isolate* isolate);

v8::Local<v8::Function> GetConstructorFunction(v8::Isolate* isolate);
Expand Down
Loading
0