On Thu, Jun 15, 2017 at 9:11 PM, Bwmat <[email protected]> wrote: > Just wondering why it's an optional module, and hasn't just been integrated > into the core? From the page it seems like a 'free' speedup. > Cheers, > Bwmat
Original reasoning was due to nature of the extension -- using bytecode generation, on-the-fly -- which: 1. means it will not work on non JVM bytecode platforms (read: Android), and may well be blocked by most access managers (on applets etc). 2. is by its nature more fragile; any problems module has are in addition to other bugs: so for optimal stability it is probably better not to enable one additional complicated optimization piece 3. aside from most disruptive fails (like exception due to invalid bytecode during dynamic generation), extensions are at very low level and may change some behavior (like View processing) -- bugs as well, if not as drastic. 4. Speedup only applies to databind (not Tree model), so it does not help some use cases Over time (2) has become less of an issue, and I hope that with better testing (3) will too (although it's a moving target -- new functionality being added typically means new places where functionality may be slightly incompatible). There is really no fixing (1) however. So, originally this was sort of safety measure: if module works, great, use it; if not, disable or remove it. As things are, I think that some things Afterburner does could be included within databind (esp. use of `nextFieldName()` for speculative matching); and perhaps some others could be included as `MapperFeature`s. But I think there will still be parts that need to be offered as additional, separate module. -+ Tatu +- > > -- > You received this message because you are subscribed to the Google Groups > "jackson-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "jackson-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
