jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Guggisberg <stefan.guggisb...@gmail.com>
Subject Re: [j3] Repository MicroKernel API draft
Date Mon, 20 Jun 2011 10:36:41 GMT
On Mon, Jun 20, 2011 at 12:21 PM, Michael Dürig <mduerig@apache.org> wrote:
>
>> why JSON strings?
>> - easy portability
>> - remoting-friendly
>> - leads to very compact API
>> - JSON parsing/generating overhead is IMO minimal
>>   and probably more effecient than creating (and collecting) tons of
>>   small java objects on the heap
>>
>
> I doubt this. In fact I think the situation with the small Java objects is
> even worse in the face of a JSON based API: typically a (de)serialization
> layer will create an additional set of intermediate objects which have to be
> consumed/translated into the domain objects of the respective
> implementation.

that's IMO implementation specific. the JSON response doesn't need to
be parsed fully, the JSON string might just as well be kept instead and
domain objects would be generated on demand from the underlying JSON data.

>
> Michael
>

Mime
View raw message