[SERVER-5061] BSONObj and BSONElement::toString use too much stack Created: 23/Feb/12  Updated: 11/Jul/16  Resolved: 17/Apr/12

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 2.1.1

Type: Bug Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

1288 and 600 bytes per call respectively on my machine. This is especially bad because they are mutually recursive.



 Comments   
Comment by auto [ 17/Apr/12 ]

Author:

{u'login': u'RedBeard0531', u'email': u'mathias@10gen.com', u'name': u'Mathias Stearn'}

Message: Follow up after codereview SERVER-5061
Branch: master
https://github.com/mongodb/mongo/commit/d21c5973fb87360c62a00a31b4fe42fa6eabc8a2

Comment by auto [ 17/Apr/12 ]

Author:

{u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: rename _StringBuilder to StringBuilderImpl SERVER-5061
Branch: master
https://github.com/mongodb/mongo/commit/04d218a7061f30e3750a8080ba2a26a8ec6df650

Comment by Mathias Stearn [ 17/Apr/12 ]

Changed StringBuilder to use heap rather than stack https://github.com/mongodb/mongo/commit/0f24625d844cbd5ff939e177a7c29a528e4995bc

Comment by Mathias Stearn [ 24/Feb/12 ]

BSONObj is WAY up from 2.0.2 where it used 280 bytes

Generated at Thu Feb 08 03:07:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.