[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 |
| 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 |
| 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 |