Skip to content

Rethink about the string function call mapping #7

@peter279k

Description

@peter279k

As title, please look at this code firstly.

It seems that we use the string function call mapping to dispatch the current imagecreatefrom and image function name.

But this approach is possible to cause some issues:

  • This should let us be hard to do debugging/reading work.
  • Don't make sure that this performance would be good.

I think we can consider using the switch......case to dispatch the current image functions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions