Skip to content

refactor without (direct) dynamic allocation - #20

Closed
fperrad wants to merge 3 commits into
antirez:masterfrom
fperrad:lua_buffer_v2
Closed

refactor without (direct) dynamic allocation#20
fperrad wants to merge 3 commits into
antirez:masterfrom
fperrad:lua_buffer_v2

Conversation

@fperrad

Copy link
Copy Markdown
Contributor

the C stack is good enough
(which is the string buffer included in Lua)
@fperradfperrad mentioned this pull request Nov 2, 2012
mattsta added a commit to mattsta/lua-cmsgpack that referenced this pull request Apr 7, 2014
cmsgpack is a much better Lua citizen now because we use the
memory allocator assigned to our lua_State instead of grabbing
memory from the system ourselves.
Typically the memory allocator is just the system's realloc,
but some use cases involve providing custom allocation routines (for
accounting or performance or limiting memory).
This closesantirez#20 too because those commits were just trying
to remove the previous direct allocation behavior.
All tests pass under Lua 5.1 and Lua 5.3-work2.
mattsta added a commit to mattsta/lua-cmsgpack that referenced this pull request Apr 7, 2014
Changes:
- Improve table vs. array detection
- Improve packing +-inf
- Add multiple pack/unpack support
- Add cmsgpack.safe module variant
- Add local build infrastructure for easier testing
- Add user-controlled unpack support limiting returned objects
- Add Lua 5.3 compatibility
- Remove an unnecessary malloc
- Use Lua memory allocator instead of malloc for buffer creation
Issues involved:
- closesantirez#16 - allow multi pack/unpack by default
- closesantirez#10 - unpack one/limit API added
- closesantirez#13 and closesantirez#20 - use Lua allocator
- closesantirez#15 - (included in antirez#16)
- ignores antirez#22 because it's confusing
- closesantirez#23 - fixed elsewhere
- closesantirez#26 - extracted some useful parts from a difficult commit
- closesantirez#28 - we started tagging versions again recently
- closesantirez#27 - that failure case works for me now
I merged commits with original author information where possible, but
each commit required manual cleanup of one or more of:
formatting fixes (no tabs, please), commit message fixes (more details
please), extracting contents from a single 300 line commit with 5
different logical changes merged together, and general correctness
checking after merging with newer code.
As of this commit, all tests pass on Lua 5.1.5 and Lua 5.3-work2.
mattsta added a commit to mattsta/lua-cmsgpack that referenced this pull request Apr 7, 2014
Changes:
- Improve table vs. array detection
- Improve packing +-inf
- Add multiple pack/unpack support
- Add cmsgpack.safe module variant
- Add local build infrastructure for easier testing
- Add user-controlled unpack support limiting returned objects
- Add Lua 5.3 compatibility
- Remove an unnecessary malloc
- Use Lua memory allocator instead of malloc for buffer creation
Issues involved:
- closesantirez#16 - allow multi pack/unpack by default
- closesantirez#10 - unpack one/limit API added
- closesantirez#13 and closesantirez#20 - use Lua allocator
- closesantirez#15 - (included in antirez#16)
- ignores antirez#22 because it's confusing
- closesantirez#23 - fixed elsewhere
- closesantirez#26 - extracted some useful parts from a difficult commit
- closesantirez#28 - we started tagging versions again recently
- closesantirez#27 - that failure case works for me now
I merged commits with original author information where possible, but
each commit required manual cleanup of one or more of:
formatting fixes (no tabs, please), commit message fixes (more details
please), extracting contents from a single 300 line commit with 5
different logical changes merged together, and general correctness
checking after merging with newer code.
As of this commit, all tests pass on Lua 5.1.5 and Lua 5.3-work2.
mattsta added a commit to mattsta/lua-cmsgpack that referenced this pull request Apr 7, 2014
Changes:
- Improve table vs. array detection
- Improve packing +-inf
- Add multiple pack/unpack support
- Add cmsgpack.safe module variant
- Add local build infrastructure for easier testing
- Add user-controlled unpack support limiting returned objects
- Add Lua 5.3 compatibility
- Remove an unnecessary malloc
- Use Lua memory allocator instead of malloc for buffer creation
Issues involved:
- closesantirez#16 - allow multi pack/unpack by default
- closesantirez#10 - unpack one/limit API added
- closesantirez#13 and closesantirez#20 - use Lua allocator
- closesantirez#15 - (included in antirez#16)
- ignores antirez#22 because it's confusing
- closesantirez#23 - fixed elsewhere
- closesantirez#26 - extracted some useful parts from a difficult commit
- closesantirez#28 - we started tagging versions again recently
- closesantirez#27 - that failure case works for me now
I merged commits with original author information where possible, but
each commit required manual cleanup of one or more of:
formatting fixes (no tabs, please), commit message fixes (more details
please), extracting contents from a single 300 line commit with 5
different logical changes merged together, and general correctness
checking after merging with newer code.
As of this commit, all tests pass on Lua 5.1.5 and Lua 5.3-work2.
mattsta added a commit to mattsta/lua-cmsgpack that referenced this pull request Apr 7, 2014
Changes:
- Improve table vs. array detection
- Improve packing +-inf
- Add multiple pack/unpack support
- Add cmsgpack.safe module variant
- Add local build infrastructure for easier testing
- Add user-controlled unpack support limiting returned objects
- Add Lua 5.3 compatibility
- Remove an unnecessary malloc
- Use Lua memory allocator instead of malloc for buffer creation
Issues involved:
- closesantirez#16 - allow multi pack/unpack by default
- closesantirez#10 - unpack one/limit API added
- closesantirez#13 and closesantirez#20 - use Lua allocator
- closesantirez#15 - (included in antirez#16)
- ignores antirez#22 because it's confusing
- closesantirez#23 - fixed elsewhere
- closesantirez#26 - extracted some useful parts from a difficult commit
- closesantirez#28 - we started tagging versions again recently
- closesantirez#27 - that failure case works for me now
I merged commits with original author information where possible, but
each commit required manual cleanup of one or more of:
formatting fixes (no tabs, please), commit message fixes (more details
please), extracting contents from a single 300 line commit with 5
different logical changes merged together, and general correctness
checking after merging with newer code.
As of this commit, all tests pass on Lua 5.1.5 and Lua 5.3-work2.
mattsta added a commit to mattsta/lua-cmsgpack that referenced this pull request Apr 7, 2014
Changes:
- Improve table vs. array detection
- Improve packing +-inf
- Add multiple pack/unpack support
- Add cmsgpack.safe module variant
- Add local build infrastructure for easier testing
- Add user-controlled unpack support limiting returned objects
- Add Lua 5.3 compatibility
- Remove an unnecessary malloc
- Use Lua memory allocator instead of malloc for buffer creation
Issues involved:
- closesantirez#16 - allow multi pack/unpack by default
- closesantirez#10 - unpack one/limit API added
- closesantirez#13 and closesantirez#20 - use Lua allocator
- closesantirez#15 - (included in antirez#16)
- ignores antirez#22 because it's confusing
- closesantirez#23 - fixed elsewhere
- closesantirez#26 - extracted some useful parts from a difficult commit
- closesantirez#28 - we started tagging versions again recently
- closesantirez#27 - that failure case works for me now
I merged commits with original author information where possible, but
each commit required manual cleanup of one or more of:
formatting fixes (no tabs, please), commit message fixes (more details
please), extracting contents from a single 300 line commit with 5
different logical changes merged together, and general correctness
checking after merging with newer code.
As of this commit, all tests pass on Lua 5.1.5 and Lua 5.3-work2.
mattsta added a commit to mattsta/lua-cmsgpack that referenced this pull request Apr 7, 2014
Changes:
- Improve table vs. array detection
- Improve packing +-inf
- Add multiple pack/unpack support
- Add cmsgpack.safe module variant
- Add local build infrastructure for easier testing
- Add user-controlled unpack support limiting returned objects
- Add Lua 5.3 compatibility
- Remove an unnecessary malloc
- Use Lua memory allocator instead of malloc for buffer creation
Issues involved:
- closesantirez#16 - allow multi pack/unpack by default
- closesantirez#10 - unpack one/limit API added
- closesantirez#13 and closesantirez#20 - use Lua allocator
- closesantirez#15 - (included in antirez#16)
- ignores antirez#22 because it's confusing
- closesantirez#23 - fixed elsewhere
- closesantirez#26 - extracted some useful parts from a difficult commit
- closesantirez#28 - we started tagging versions again recently
- closesantirez#27 - that failure case works for me now
I merged commits with original author information where possible, but
each commit required manual cleanup of one or more of:
formatting fixes (no tabs, please), commit message fixes (more details
please), extracting contents from a single 300 line commit with 5
different logical changes merged together, and general correctness
checking after merging with newer code.
As of this commit, all tests pass on Lua 5.1.5 and Lua 5.3-work2.
mattsta added a commit to mattsta/lua-cmsgpack that referenced this pull request Apr 7, 2014
cmsgpack is a much better Lua citizen now because we use the
memory allocator assigned to our lua_State instead of grabbing
memory from the system ourselves.
Typically the memory allocator is just the system's realloc,
but some use cases involve providing custom allocation routines (for
accounting or performance or limiting memory).
This closesantirez#20 too because those commits were just trying
to remove the previous direct allocation behavior.
All tests pass under Lua 5.1 and Lua 5.3-work2.
mattsta added a commit to mattsta/lua-cmsgpack that referenced this pull request Apr 7, 2014
Changes:
- Improve table vs. array detection
- Improve packing +-inf
- Add multiple pack/unpack support
- Add cmsgpack.safe module variant
- Add local build infrastructure for easier testing
- Add user-controlled unpack support limiting returned objects
- Add Lua 5.3 compatibility
- Remove an unnecessary malloc
- Use Lua memory allocator instead of malloc for buffer creation
Issues involved:
- closesantirez#16 - allow multi pack/unpack by default
- closesantirez#10 - unpack one/limit API added
- closesantirez#13 and closesantirez#20 - use Lua allocator
- closesantirez#15 - (included in antirez#16)
- ignores antirez#22 because it's confusing
- closesantirez#23 - fixed elsewhere
- closesantirez#26 - extracted some useful parts from a difficult commit
- closesantirez#28 - we started tagging versions again recently
- closesantirez#27 - that failure case works for me now
I merged commits with original author information where possible, but
each commit required manual cleanup of one or more of:
formatting fixes (no tabs, please), commit message fixes (more details
please), extracting contents from a single 300 line commit with 5
different logical changes merged together, and general correctness
checking after merging with newer code.
As of this commit, all tests pass on Lua 5.1.5 and Lua 5.3-work2.
mattsta added a commit to mattsta/lua-cmsgpack that referenced this pull request Apr 11, 2014
Changes:
- Improve table vs. array detection
- Improve packing +-inf
- Add multiple pack/unpack support
- Add cmsgpack.safe module variant
- Add local build infrastructure for easier testing
- Add user-controlled unpack support limiting returned objects
- Add Lua 5.3 compatibility
- Remove an unnecessary malloc
- Use Lua memory allocator instead of malloc for buffer creation
Issues involved:
- closesantirez#16 - allow multi pack/unpack by default
- closesantirez#10 - unpack one/limit API added
- closesantirez#13 and closesantirez#20 - use Lua allocator
- closesantirez#15 - (included in antirez#16)
- ignores antirez#22 because it's confusing
- closesantirez#23 - fixed elsewhere
- closesantirez#26 - extracted some useful parts from a difficult commit
- closesantirez#28 - we started tagging versions again recently
- closesantirez#27 - that failure case works for me now
I merged commits with original author information where possible, but
each commit required manual cleanup of one or more of:
formatting fixes (no tabs, please), commit message fixes (more details
please), extracting contents from a single 300 line commit with 5
different logical changes merged together, and general correctness
checking after merging with newer code.
As of this commit, all tests pass on Lua 5.1.5 and Lua 5.3-work2.
mattsta added a commit to mattsta/lua-cmsgpack that referenced this pull request Apr 11, 2014
Changes:
- Improve table vs. array detection
- Improve packing +-inf
- Add multiple pack/unpack support
- Add cmsgpack.safe module variant
- Add local build infrastructure for easier testing
- Add user-controlled unpack support limiting returned objects
- Add Lua 5.3 compatibility
- Remove an unnecessary malloc
- Use Lua memory allocator instead of malloc for buffer creation
Issues involved:
- closesantirez#16 - allow multi pack/unpack by default
- closesantirez#10 - unpack one/limit API added
- closesantirez#13 and closesantirez#20 - use Lua allocator
- closesantirez#15 - (included in antirez#16)
- ignores antirez#22 because it's confusing
- closesantirez#23 - fixed elsewhere
- closesantirez#26 - extracted some useful parts from a difficult commit
- closesantirez#28 - we started tagging versions again recently
- closesantirez#27 - that failure case works for me now
- closesantirez#31 - fix comment typos
I merged commits with original author information where possible, but
each commit required manual cleanup of one or more of:
formatting fixes (no tabs, please), commit message fixes (more details
please), extracting contents from a single 300 line commit with 5
different logical changes merged together, and general correctness
checking after merging with newer code.
As of this commit, all tests pass on Lua 5.1.5 and Lua 5.3-work2.
mattsta added a commit to mattsta/lua-cmsgpack that referenced this pull request Apr 14, 2014
Changes:
- Improve table vs. array detection
- Improve packing +-inf
- Add multiple pack/unpack support
- Add cmsgpack.safe module variant
- Add local build infrastructure for easier testing
- Add user-controlled unpack support limiting returned objects
- Add Lua 5.3 compatibility
- Remove an unnecessary malloc
- Use Lua memory allocator instead of malloc for buffer creation
Issues involved:
- closesantirez#16 - allow multi pack/unpack by default
- closesantirez#10 - unpack one/limit API added
- closesantirez#13 and closesantirez#20 - use Lua allocator
- closesantirez#15 - (included in antirez#16)
- ignores antirez#22 because it's confusing
- closesantirez#23 - fixed elsewhere
- closesantirez#26 - extracted some useful parts from a difficult commit
- closesantirez#28 - we started tagging versions again recently
- closesantirez#27 - that failure case works for me now
- closesantirez#31 - fix comment typos
I merged commits with original author information where possible, but
each commit required manual cleanup of one or more of:
formatting fixes (no tabs, please), commit message fixes (more details
please), extracting contents from a single 300 line commit with 5
different logical changes merged together, and general correctness
checking after merging with newer code.
As of this commit, all tests pass on Lua 5.1.5 and Lua 5.3-work2.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@fperrad