I have made a very cool system to hold condiitons(for item usage, skill usage and other things) that makes it very easy to add next condition with minimum amount of code required, but using reflection is required in order to make it work. I am wondering what would be a nice way to do it with lambda, which would increase performance speed drastically.
ConditionsHolder class is holding all methods, their parameters etc. The problem is that reflections are slow, so I am looking for the best way to make it with lambdas.
Added: a brand-new default dashboard template.
You can now add multiple game/login server builds.
Full support for running both PTS & L2J servers simultaneously, with switching between them.
Payment systems: added OmegaPay and Pally (new PayPal-style API).
Account history now stores everything: donations, items delivered to characters, referrals, transfers between game accounts, and coin transfers to another master account.
Personal Promo Code System: you can create a promo code and assign it to a user or promoter. When donating, a player can enter this promo code to receive bonus coins, and the promo code owner also receives a bonus — all fully configurable in the admin panel.
Look demo site: demo
MoMoProxy has updated more static residential proxies for USA location, anyone interested in can view: https://momoproxy.com/static-residential-proxies
Question
vampir
Hi
I have made a very cool system to hold condiitons(for item usage, skill usage and other things) that makes it very easy to add next condition with minimum amount of code required, but using reflection is required in order to make it work. I am wondering what would be a nice way to do it with lambda, which would increase performance speed drastically.
This is one of the classes holding condition. For example adding zone method is the only thing required to be done in source in order to have
<zone name="zone_name_here" type="peace_zone/>
condition be added to xmls
That's how I run the method:
ConditionsHolder class is holding all methods, their parameters etc. The problem is that reflections are slow, so I am looking for the best way to make it with lambdas.
Any ideas?
Edited by vampir11 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now