diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2014-05-30 12:56:18 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2014-05-30 12:56:18 +1000 |
commit | fbeb5e2095818fc1d812bcde7389cb4a380f3afa (patch) | |
tree | 7d6019b03d073d749f8f1ae94e7b0fe26e7e3c82 /bench | |
parent | be8620a481dc7c822d161ad8dc769ebf71e87462 (diff) | |
download | mongo-fbeb5e2095818fc1d812bcde7389cb4a380f3afa.tar.gz |
Avoid snprintf for key generation in wtperf: in small-btree, there is a measurable advantage to plain sprintf.
Diffstat (limited to 'bench')
-rw-r--r-- | bench/wtperf/wtperf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bench/wtperf/wtperf.c b/bench/wtperf/wtperf.c index 092d6679d23..9d504a9a214 100644 --- a/bench/wtperf/wtperf.c +++ b/bench/wtperf/wtperf.c @@ -123,8 +123,7 @@ async_next_incr(uint64_t *val) static inline void generate_key(CONFIG *cfg, char *key_buf, uint64_t keyno) { - snprintf(key_buf, cfg->key_sz, - "%0*" PRIu64, cfg->key_sz - 1, keyno); + sprintf(key_buf, "%0*" PRIu64, cfg->key_sz - 1, keyno); } static void |