Jump to content




[MC1.12+][Fork] CC: Tweaked


80 replies to this topic

#81 SquidDev

    Frickin' laser beams

  • Members
  • 1,425 posts
  • LocationDoes anyone put something serious here?

Posted 24 August 2020 - 02:15 PM

I pushed a release yesterday, but entirely forgot to write an update post about it. CC:T 1.91.0 isn't a big change, but there's a couple of minor improvements.
  • string.{pack,unpack,packsize} support. MCJack123 added support to Cobalt for the various string pack/unpacking functions from Lua 5.3. These behave similarly to Python's struct module, or PHP's pack/unpack - it allows you to easily pack binary data into strings, and unpack it again. Hopefully it'll make working with complex binary file formats (such as images, compressed files, etc...) a little easier.
  • Repeated string concatenation is now linear rather than quadratic. This won't have any major impact, just will mean code doing string concatenation within loops will run a little faster - in some pathological cases, textutils.serialize is 10x faster.
    I've done a little write up on how this works internally, if that's your sort of thing.
Many thanks to abby, MCJack123, neumond and R93950X for their PRs! Having other people help out makes things significantly easier.





8 user(s) are reading this topic

0 members, 8 guests, 0 anonymous users