Skip to content

Slow performance (barbaric allocation of 64 MB) #3

@kwketh

Description

@kwketh

Not expecting this to be fixed, but this is just for future reference and/or if anyone is curious why a lot of memory is allocated for any filter, no matter what image size.

(lldb) print sizeof(xbr_data)
(unsigned long) $0 = 67108864

xbr_data is allocated at:

xbrData = malloc(sizeof(xbr_data));

due to a massive array size (64 mb):

uint32_t rgbtoyuv[1<<24];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions