branch: externals/pyim
commit 24fe5f88c7c857068d217939ce174fc7b6839278
Author: Feng Shu <[email protected]>
Commit: Feng Shu <[email protected]>

    * pyim-common.el (pyim-zip): 优化速度。
---
 pyim-common.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyim-common.el b/pyim-common.el
index 7b84473..c6d327b 100644
--- a/pyim-common.el
+++ b/pyim-common.el
@@ -87,7 +87,8 @@
 
 (defun pyim-zip (lists)
   "Zip LISTS and delete dups: ((a b c) (d e)) => (a d b e c)."
-  (when lists
+  (if (< (length lists) 2)
+      (car lists)
     (let* ((n (apply #'max (mapcar #'length lists)))
            (lists (mapcar
                    (lambda (x)

Reply via email to