octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #57321] Performance degradation due to memory


From: anonymous
Subject: [Octave-bug-tracker] [bug #57321] Performance degradation due to memory allocation
Date: Thu, 28 Nov 2019 13:11:47 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:60.9) Goanna/4.1 PaleMoon/28.2.0a1

URL:
  <https://savannah.gnu.org/bugs/?57321>

                 Summary: Performance degradation due to memory allocation
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 28 Nov 2019 06:11:45 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Performance
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Currently performance of octave is affected by extensive memory allocations. I
think using a customized memory allocator or a memory pool can improve the
performance. For example Python
<http://jasonleaster.github.io/2016/02/03/memory-model-of-int-object-in-python/>
uses a simple free list for allocation of small numeric objects.
I changed the file ov-base.h and implemented a simple free-list based memory
pool and provided custom "new" and "delete" operators for the class
"octave_base_value". The diff file and the modified file are attached. 






    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 28 Nov 2019 06:11:45 PM UTC  Name: ov-base.h.diff  Size: 3KiB   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=47940>
-------------------------------------------------------
Date: Thu 28 Nov 2019 06:11:45 PM UTC  Name: ov-base1.h  Size: 27KiB   By:
None

<http://savannah.gnu.org/bugs/download.php?file_id=47941>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57321>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]