#1389 util.serialization: Creates new serializer instance on each call

Reporter Zash
Owner Zash
Created
Updated
Stars ★ (1)
Tags
  • Status-Fixed
  • Milestone-0.11
  • Performance
  • Priority-Medium
  • Type-Defect
  1. Zash on

    What steps will reproduce the problem? 1. call util.serialization.serialize() a lot What is the expected output? Should be fast and efficient What do you see instead? Because it creates a default configuration on each call, a needless amount of memory allocations are done. Most users of the library don't yet create a serializer instance with any special settings, instead using the default, causing new instance being created each call. What version of the product are you using? 0.11.x

  2. Zash on

    Fixed in https://hg.prosody.im/trunk/rev/7a36b7ac309b

    Changes
    • tags Status-Fixed
    • owner Zash
  3. Zash on

    Changes
    • tags Performance

New comment

Not published. Used for spam prevention and optional update notifications.