Skip to content
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

NodObjC performance #2

Open
sandeepmistry opened this issue Jul 17, 2016 · 0 comments
Open

NodObjC performance #2

sandeepmistry opened this issue Jul 17, 2016 · 0 comments

Comments

@sandeepmistry
Copy link
Owner

Every call to the NodObjC seems to 1 - 9ms, for example:

var $ = require('NodObjC');

$.import('Foundation');

setInterval(function() {
  console.time('dict');
  var $options = $.NSMutableDictionary('alloc')('init');
  console.timeEnd('dict');
}, 1000);

We should try out making a custom .framework that extends CoreBluetooth that serializes objects to JSON strings to cut down on the $ calls in Node.js land, and see what impact this has on performance.

Not a priority at this point in time though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant