fastjson icon indicating copy to clipboard operation
fastjson copied to clipboard

fastjson serialize object more than 400+field errro

Open qifanyang opened this issue 12 years ago • 3 comments

when the object more than 400+field , the asmSerialzerFactory create class, method too long more than 65535 , so need to split write method

qifanyang avatar May 15 '14 06:05 qifanyang

请问你用的是那个版本?有试过最新版本没有?

yakolee avatar Jul 03 '14 02:07 yakolee

是最新的版本,这个问题跟版本没关系吧,是一个类字段太多了,用asm生成的代码超过了java方法最大的长度65535

[email protected]  From: YakoDate: 2014-07-03 10:56To: alibaba/fastjsonCC: qifanyangSubject: Re: [fastjson] fastjson serialize object more than 400+field errro (#174)请问你用的是那个版本?有试过最新版本没有?

— Reply to this email directly or view it on GitHub.

qifanyang avatar Jul 03 '14 03:07 qifanyang

SerializeConfig config = new SerializeConfig(); config.setAsmEnable(false);//字段过多,需关闭asm

希望优化下,我有一个类800个字段,想使用asm特性,希望可以修改个版本把每300个(可配置)字段对应一个write方法,如使用反射的话和json-lib速度差不多,就没优势了

qifanyang avatar Aug 04 '14 06:08 qifanyang