Skip to content

Null Executor memory reductions #2179

@bdbaddog

Description

@bdbaddog

This issue was originally created at: 2008-08-16 08:23:41.
This issue was reported by: pankrat.
pankrat said at 2008-08-16 08:23:41

The attached patch reduces the memory footprint of Executor.Null by making it a
true stub and not inherit from Executor anymore. A Null executor object is
morphed to a real Executor object if an action is added through
'add_pre_action', 'add_post_action', 'set_action_list'.

Moreover, the singleton pattern is applied for the NullEnvironment object.

This way, Null executor objects can be cut down to 240 Byte (~25% of its
original size). Depending on the project, this can save about 3-4% of memory.

pankrat said at 2008-08-16 08:24:58

Created an attachment (id=474)
Refactored Executor.Null which not inherits from Executor

gregnoel said at 2008-08-19 12:37:37

Bug party triage.

gregnoel said at 2008-09-09 16:05:45

Bug party triage. Go for it.

pankrat said at 2008-09-12 11:18:04

Patch applied in revision 3390.

pankrat attached nullexecutor_stub.patch at 2008-08-16 08:24:58.

Refactored Executor.Null which not inherits from Executor

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions