From 37ecc74c91353d6d82afa9fcebbf55647b55cd82 Mon Sep 17 00:00:00 2001 From: Serhii Sakhno Date: Sat, 15 Oct 2016 21:39:03 +0000 Subject: [PATCH] optimization of buffer operations copy/paste git-svn-id: svn://kolibrios.org@6597 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/eolite/include/copy.h | 184 +++++++++++++++++++-- programs/cmm/eolite/include/translations.h | 4 +- 2 files changed, 171 insertions(+), 17 deletions(-) diff --git a/programs/cmm/eolite/include/copy.h b/programs/cmm/eolite/include/copy.h index ef27ccb1ed..387a01c634 100644 --- a/programs/cmm/eolite/include/copy.h +++ b/programs/cmm/eolite/include/copy.h @@ -12,24 +12,41 @@ void Copy(dword pcth, char cut) dword selected_offset2; byte copy_t[4096]; dword buff_data; + dword path_len = 0; + dword buffer_len = 0; + dword size_buf = 0; int ind = 0; if (selected_count) { - buff_data = malloc(selected_count*4096+10); - ESDWORD[buff_data] = selected_count*4096+10; - ESDWORD[buff_data+4] = 3; - ESINT[buff_data+8] = selected_count; for (i=0; i