hsweb-framework
hsweb-framework copied to clipboard
[需求] Is better for FastBeanCopier change CACHE type to ConcurrentReferenceHashMap
f in a scenario where the key changes frequently,ConcurrentHashMap takes up a lot of invalid memory
I don't think so ,Creating Copier is time-consuming, and using ConcurrentHashMap may speed up program crashes!
I don't think so ,Creating Copier is time-consuming, and using ConcurrentHashMap may speed up program crashes!
emmm, maybe you say ConcurrentReferenceHashMap will speed up program crashes ?
FastBeanCopier exactly use ConcurrentHashMap here !
You have a point, It's cost-effective to have high performance requirements ! But the situations of out-of-memory situations also need to be considered , is there can provider a choose .

You are right , It should be configurable , can you pull request to do it ?
Thanks for your invitation , i will try do this !