optimize code for getting methodmodel of methods with @Select annotation
Im using java24's classfile api to get the string rapresentation of functions, and i want to select only the ones with the
@Select
annotation. my current implementation uses two loops, one to get the annotated methods and another to check if the name of the method matches with the method model. this O^2 implementation kinda sucks and i couldnt find in the classfile docs a better way to do thisjava.lang.classfile (Java SE 24 & JDK 24 [build 35])
declaration: module: java.base, package: java.lang.classfile
1 Reply
⌛
This post has been reserved for your question.
Hey @asdru! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.