Skip to content

Instantly share code, notes, and snippets.

@shaoshing
Created March 4, 2016 00:16
Show Gist options
  • Save shaoshing/c4e3588c6f3e6cc1d261 to your computer and use it in GitHub Desktop.
Save shaoshing/c4e3588c6f3e6cc1d261 to your computer and use it in GitHub Desktop.
console.time("documentID");
_spaces.ps.descriptor.get({
"_multiGetRef": [
{
"_propertyList": [
"documentID"
]
},
{
"_range": "document",
"_index": 1,
"_count": -1
},
{
"_ref": "application",
"_enum": "ordinal",
"_value": "targetEnum"
}
]
}, {}, function(){
console.timeEnd("documentID");
});
console.time("viewTransform");
_spaces.ps.descriptor.get({
"_multiGetRef": [
{
"_propertyList": [
"viewTransform",
"zoom"
]
},
{
"_ref": "document",
"_id": _getCurrentDocument().id
}
]
}, {}, function(){
console.timeEnd("viewTransform");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment