Uploaded image for project: 'Infinispan Javascript client'
  1. Infinispan Javascript client
  2. HRJS-63

Investigate more recent or alternative Promise implementations

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      The current Promise implementation (promise:7.0.4) can have misleading GC behaviour. If you create a promise out of a big number of promises, any linked function callbacks via .then() will still see all the garbage generated by the Promises. Only when one of those .then() functions returns a new Promise will all previous Promises and related memory consumption be garbage collected.

      Create a test that replicates this and verify whether newer implementations handle it better, or whether alternative implementations avoid this issue.

      An example of this can be found here. In this other example the problem is avoided by generating a new promise after handling the big Promise.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  galder.zamarreno Galder ZamarreƱo
                  Reporter:
                  galder.zamarreno Galder ZamarreƱo
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: