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

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

loanshark

  • 资源大小:189.16 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分: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天前 成为了本站会员

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

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

  • 大智若愚 2天前 成为了本站会员

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

  • 2天前 成为了本站会员

  • Half_Punch 3天前 成为了本站会员

  • liqing71718 3天前 成为了本站会员

  • 伟国 3天前 成为了本站会员

  • songy 3天前 成为了本站会员

0.180748s