HoeKey 自定义热键启动应用程序 HoeKey Quick and dirty: HoeKey lets you assign most keys on your keyboard to many different actions. You set this up in a config file. To get started, run HoeKey, push Win-Q, click Edit Config. This file is formatted like: Key=Fun
但是如果数组比较大的时候,性能就会下降,运行的就会久一点,那如果针对在大数组情况下做优化呢,下面说两种方法(都是通过自定义函数来实现):
1.数组key与value翻转,通过isset判断key是否存在于数组中复制代码 代码如下:/** * in_array is too slow when array is large */public static function inArray($item, $array) { $flipArray = array_flip($array);