Forum Replies Created

  • lzl

    Member
    June 13, 2023 at 12:00 am in reply to: How does nested columns/lists fragment memory?

    Hi Sam,

    Thanks for your detailed explanation and documents. I have tried the Immediate garbage collection mode in my application but didn’t get much speed up. I create nested list (mixed with different datatypes) and may release part of it in my function.  And I have some further questions:

    1. Will creating temporary nested list within a function and update them locally (without updating to global variables) cause memory fragmentation? For example: I first create a nested list nl and then reassign nl:nl[:: ; 0]
    2. If I reassign  nl: nl[:: ; 0] and also update nl to a global variable `.test.nl insert nl, will it cause memory fragmentation?
    3. In which scenario will variable declaration operation (:) cause memory allocation in KDB?
  • lzl

    Member
    May 8, 2023 at 12:00 am in reply to: Async broadcast to websocket handles using internal function -25!

    Thanks a lot rocuinneagain! I assumed websocket handles were also IPC handles. -38! gives me the answer. Again very appreciate for your detailed reply