ethanhs / abserde

Generate fast JSON parsers based on type stubs
Apache License 2.0
13 stars 0 forks source link

Change loads to take a type to deserialize into #8

Closed ethanhs closed 4 years ago

ethanhs commented 5 years ago

It should have a signature Callable[[Union[str, bytes, bytearray], *, typ=Type[T]], T]

ethanhs commented 4 years ago

Initial testing indicates this may not be faster, but we shall see.

ethanhs commented 4 years ago

It seems it would be faster/better to have the loads/dumps on the class/instance themselves.