Re: Passing Map to Remote App

new topic     » goto parent     » topic index » view thread      » older message » newer message
ghaberek said...

It looks like save_map() just uses the serialize() function.

Interesting. BENCHMARK TIME!

This would be on the client (not tested):

-- on client 
object data = HttpGet("mysite.com/api/map/my_map") 
data = decode(data) 
{res,data} = value(data) 
data = map_from_kv_pairs(data) 

I'm currently doing basically this on the server (and it's working fine):

-- on server 
object data = load_map( map:get(request_object,"map_id" ) ) -- "my_map" 
data = pairs(data) 
return encode(sprint(data)) -- encode can be base64() and/or encryption 

Does sprint() do a serialize too, I wonder?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu