You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.
Perhaps you can create a QueryCache class in the query package, with a static public var:
package uk.co.ziazoo.fussy.query
{
import flash.utils.Dictionary;
public class QueryCache
{
public static var cache:Dictionary = new Dictionary();
}
}
And in the TypeQuery class replace the old caching system like this:
public function forType(type:Class):TypeDescription
{
var description:TypeDescription = QueryCache.cache[type] as TypeDescription;
// ....
QueryCache.cache[type] = description;
return description;
}
Thanks !
J.
The text was updated successfully, but these errors were encountered:
Hello,
The TypeQuery class has a caching system to optimize speed request.
But the cache system only works in few cases.
First, add a trace to test here :
http://github.com/sammyt/fussy/blob/master/src/uk/co/ziazoo/fussy/query/TypeQuery.as#L31
If you want the description twice like this, no caching used (no trace "has already a description"):
Perhaps you can create a QueryCache class in the query package, with a static public var:
And in the TypeQuery class replace the old caching system like this:
Thanks !
J.
The text was updated successfully, but these errors were encountered: