Skip to content

Commit

Permalink
Tweaked c++ bson parser build to get more performance out of it
Browse files Browse the repository at this point in the history
  • Loading branch information
christkv committed Aug 13, 2011
1 parent 91b0302 commit e696d4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/bson_benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var BSON = require('../lib/mongodb').BSONNative.BSON,

// require('util').debug(require('util').inspect(BSON))

var COUNT = 1000000;
var COUNT = 100000;
// var COUNT = 1;
// var object = {
// string: "Strings are great",
Expand Down
1 change: 1 addition & 0 deletions external-libs/bson/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def set_options(opt):
def configure(conf):
conf.check_tool("compiler_cxx")
conf.check_tool("node_addon")
conf.env.append_value('CXXFLAGS', ['-O3', '-funroll-loops'])
# conf.env.append_value('CXXFLAGS', ['-DDEBUG', '-g', '-O0', '-Wall', '-Wextra'])

# conf.check(lib='node', libpath=['/usr/lib', '/usr/local/lib'], uselib_store='NODE')
Expand Down

0 comments on commit e696d4e

Please sign in to comment.