首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > loanshark

loanshark

  • 资源大小:189.16 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

Loan Shark is a flexible and high-performance object pooling utility, written in AS3. It is battle-hardened, fully unit tested and will be regularly updated. How to use it Especially useful with custom classes that a heavy to constructor, simply instaniate a LoanShark instance, passing in your class of choice. You can then borrowObject and returnObject at will, the LoanShark will manage reuse and allocation of objects - making lighter work for your garbage collector: var pool:LoanShark = new LoanShark(SomeClass);var someInstance:SomeClass = pool.borrowObject();pool.returnObject(someInstance); A bunch of other options are available, simply check out the code to find out how to do: Pool size pre-allocation Pruning the pool of unused objects and flushing the pool of all objects Adding reset and dispose method calls on pooled objects Maximum pool wastage prune triggering Listening for even

文 件 列 表

loanshark_v11
lib
LoanSharkDemo.as3proj
src
test
bin

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • 猕猴桃 1天前 成为了本站会员

  • 11 1天前 成为了本站会员

  • 开心快活人 1天前 成为了本站会员

  • 晋财 1天前 成为了本站会员

  • WYG 2天前 成为了本站会员

  • Shine 2天前 成为了本站会员

  • 柳贻 2天前 成为了本站会员

  • hallelujah_HL 2天前 成为了本站会员

  • 焦昱贺 2天前 成为了本站会员

  • Rubin 2天前 成为了本站会员

0.154105s