[GODRIVER-2727] Investigate using io.Reader/io.Writer interface in bson/core package Created: 04/Jan/23 Updated: 23/Jan/23 |
|
| Status: | Backlog |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Unknown |
| Reporter: | Qingyang Hu | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Consider using the io.Reader/io.Writer interface in bson processing functions to encapsulate memory handling instead of the current raw slices. It helps to adapt various memory management mechanisms such as memory pool. |