Skip to content

minecraftToBukkit() Poor Performance #12283

@ghost

Description

Expected behavior

getActivePotionEffects should be fast

Observed/Actual behavior

its slow, possibly because of papers registry implementation, seems to add alot of overhead

Steps/models to reproduce

Call getActivePotionEffects often, i.e in an anti-cheat

Not allowed to link to spark, here is screenshots for example (test it yourself)
Image

Image

Plugin and Datapack List

N/A

Paper version

This server is running Paper version 1.21.4-DEV-main@f0388e2 (1970-01-01T00:00:00Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.4-DEV-1a7288a (MC: 1.21.4)

Other

Maybe we do a cache? Kinda like blockdata conversion

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions