WO2016101334A1 - 一种页面缓存动态处理方法 - Google Patents

一种页面缓存动态处理方法 Download PDF

Info

Publication number
WO2016101334A1
WO2016101334A1 PCT/CN2015/000907 CN2015000907W WO2016101334A1 WO 2016101334 A1 WO2016101334 A1 WO 2016101334A1 CN 2015000907 W CN2015000907 W CN 2015000907W WO 2016101334 A1 WO2016101334 A1 WO 2016101334A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
backward
space
buffer space
cache
Prior art date
Application number
PCT/CN2015/000907
Other languages
English (en)
French (fr)
Inventor
熊雨前
方俊
Original Assignee
福建福昕软件开发股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 福建福昕软件开发股份有限公司 filed Critical 福建福昕软件开发股份有限公司
Publication of WO2016101334A1 publication Critical patent/WO2016101334A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Definitions

  • the invention relates to the field of electronic document processing, and in particular to a page cache dynamic processing method involving a mobile phone, a tablet computer and various types of displays.
  • the page cache processing technology of the document is the key technology in the document processing process.
  • the reasonableness of the cache application directly determines the performance of the document processing software.
  • the current document processing software adopts the static page caching technology, that is, allocates a certain size of storage space according to the memory size of the device and the size and number of pages of the document to meet the needs of document processing.
  • the invention provides a page cache dynamic processing method and device, and optimizes the process of document processing according to the characteristics of the touch screen.
  • the present invention provides a method for dynamically processing a page cache, including the following steps:
  • the screen direction and the screen speed when the user operates the touch screen device are obtained in real time;
  • the definition of the downward stroke is a forward stroke.
  • the definition of the upward screen is a forward screen.
  • the buffer space allocated to the document at the set time t is Mt
  • the forward buffer space is Mf
  • the backward buffer space is Mb
  • the value of the swipe speed and the swipe direction are respectively represented by V values and positive and negative signs
  • the swipe direction is a positive sign when the forward swipe is
  • the direction of the screen is indicated by a minus sign when the screen is backward
  • the allocation of the buffer space Mt of the document at time t follows the following rules:
  • Vmax is the given maximum screen speed value, and is processed as Vmax when the value of the screen speed is greater than Vmax.
  • the invention also provides a page cache dynamic processing device, comprising:
  • the information acquisition module is a system calling function, which is used for real-time acquiring the screen orientation and the screen speed of the user on the touch screen device;
  • a cache space dividing module configured to divide the cache space allocated to the document into a forward buffer space and a backward buffer space
  • a buffer space allocation module configured to allocate more buffer space to the forward buffer space when the screen direction is a forward screen, the larger the value of the screen speed, the forward direction of the allocation The larger the buffer space is. Conversely, when the screen direction is a backward screen, more buffer space is allocated to the backward buffer space, and the value of the screen speed is larger, and the backward direction is allocated. The larger the cache space.
  • the definition of the downward stroke is a forward stroke.
  • the definition of the upward screen is a backward screen.
  • the cache space allocation module further includes a cache space calculation module, and the method for calculating the cache space is:
  • the buffer space allocated to the document at the time t is Mt, wherein the forward buffer space is Mf, the backward buffer space is Mb, and the value of the screen speed and the screen direction are respectively V values. And the positive and negative signs are indicated, and the direction of the screen is forward marked with a positive sign, and the direction of the screen is indicated by a minus sign when the screen is backward, then the allocation of the buffer space Mt of the document at time t follows The following rules:
  • Vmax is the given maximum screen speed value, when the value of the screen speed is greater than Vmax, Vmax processing.
  • the present invention focuses on methods and apparatus for improving dynamic processing of page caches.
  • the invention obtains the screen orientation and speed, and calculates the size of the forward or backward buffer space for page processing, and in the process, according to the screen direction and the screen speed
  • the parameters are adjusted to implement dynamic allocation processing of the page cache, which greatly improves the utilization of the cache, improves the response speed of the document processing software, and the like, thereby greatly improving the user experience.
  • FIG. 1 is a flowchart of a method for dynamically processing a page cache according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for dynamically processing a page cache according to an embodiment of the present invention.
  • the invention provides a method for dynamically processing a page cache, comprising the following steps:
  • the screen direction and the screen speed when the user operates the touch screen device are obtained in real time;
  • the downward swipe is defined as a forward swipe.
  • the upward swipe is defined as a backward swipe.
  • the buffer space allocated to the document at time t is Mt, wherein
  • the forward buffer space is Mf
  • the backward buffer space is Mb
  • the value of the screen speed and the screen direction are respectively represented by V values and positive and negative signs
  • the screen direction is forward
  • the screen is indicated by a positive sign
  • the direction of the screen is indicated by a minus sign when the screen is backward.
  • Vmax is the given maximum screen speed value, and is processed as Vmax when the value of the screen speed is greater than Vmax.
  • the invention also provides a page cache dynamic processing device, comprising:
  • the information acquisition module is a system function for acquiring the screen orientation and the screen speed of the user on the touch screen device in real time;
  • a cache space dividing module configured to divide the cache space allocated to the document into a forward buffer space and a backward buffer space
  • a buffer space allocation module configured to allocate more buffer space to the forward buffer space when the screen direction is a forward screen, the larger the value of the screen speed, the forward direction of the allocation The larger the buffer space is. Conversely, when the screen direction is a backward screen, more buffer space is allocated to the backward buffer space, and the value of the screen speed is larger, and the backward direction is allocated. The larger the cache space.
  • the downward swipe is defined as a forward swipe.
  • the upward swipe is defined as a backward swipe.
  • the cache space allocation module further includes a cache space calculation module, and the method for calculating the cache space is:
  • the buffer space allocated to the document at the time t is Mt, wherein the forward buffer space is Mf, the backward buffer space is Mb, and the value of the screen speed and the screen direction are respectively V values. And the positive and negative signs are indicated, and the direction of the screen is forward marked with a positive sign, and the direction of the screen is indicated by a minus sign when the screen is backward, then the allocation of the buffer space Mt of the document at time t follows The following rules:
  • Vmax is the given maximum screen speed value, and is processed according to Vmax when the screen speed value is greater than Vmax.
  • the page cache space size at a certain time is given according to the device memory size, the document size, the number of pages, etc., and the screen capture speed is collected based on the touch screen itself, and the maximum screen speed setting is based on statistically empirical values, according to the two. Based on the size of the given page cache space, the optimal cache space allocation scheme based on the screen speed can be obtained.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种页面缓存动态处理方法,包括以下步骤:通过调用相关系统函数,实时获取用户操作触摸屏设备时的划屏方向及划屏速度(S1);将已分配给文档的缓存空间划分为前向缓存空间和后向缓存空间(S2);当所述划屏方向为前向划屏时,分配更多的缓存空间给所述前向缓存空间,所述划屏速度值越大,分配的所述前向缓存空间越大;反之,当所述划屏方向为后向划屏时,则分配更多的缓存空间给所述后向缓存空间,所述划屏速度值越大,分配的所述后向缓存空间越大(S3)。

Description

一种页面缓存动态处理方法 技术领域
本发明涉及电子文档处理领域,具体而言,是涉及手机、平板电脑及各类显示器的一种页面缓存动态处理方法。
背景技术
文档的页面缓存处理技术是文档处理过程中的关键技术,缓存运用的合理与否直接决定了文档处理软件性能的高与低。当前文档处理软件采用的是静态页面缓存技术,即根据设备的内存大小和文档自身的尺寸及页数等情况,分配一定大小的存储空间,以满足文档处理的需要。
现在,电子设备越来越发达,手机、平板电脑的应用越来越普及,功能也越来越多,也出现越来越多的触摸屏设备。针对触摸屏设备的特点,支持触摸屏的移动设备,处理能力及内部存储空间都相对有限,所以需要高效的缓存技术以提高缓存的利用率;现有的文档处理技术并没有考虑并针对支持触摸屏的手机、平板电脑及个人电脑(PC)等设备的特点进行优化处理。
发明内容
本发明提供一种页面缓存动态处理方法及装置,根据触摸屏的特点,对文档处理的过程进行优化。
为达到上述目的,本发明提供了一种页面缓存动态处理方法,包括以下步骤:
通过调用相关系统函数,实时获取用户操作触摸屏设备时的划屏方向及划屏速度;
将已分配给文档的缓存空间划分为前向缓存空间和后向缓存空间;
当所述划屏方向为前向划屏时,分配更多的缓存空间给所述前向缓存空间,所述划屏速度的值越大,分配的所述前向缓存空间越大;反之,当所述划屏方向为后向划屏时,分配更多的缓存空间给所述后向缓存空间,所述划屏速度的值越大,分配的所述后向缓存空间越大。
其中,定义向下划屏为前向划屏。
其中,定义向上划屏为前向划屏。
其中,设定时刻t已分配给文档的缓存空间为Mt,其中所述前向缓存空间为 Mf、所述后向缓存空间为Mb,所述划屏速度的值和所述划屏方向分别用V值和正负符号表示,并且所述划屏方向为前向划屏时用正号表示,所述划屏方向为后向划屏时用负号表示,则时刻t文档的缓存空间Mt的分配遵循以下规则:
Mt=Mf+Mb;
Figure PCTCN2015000907-appb-000001
Figure PCTCN2015000907-appb-000002
其中:Vmax为给定的最大划屏速度值,当所述划屏速度的值大于Vmax时按Vmax处理。
本发明还提供一种页面缓存动态处理装置,包括:
信息获取模块,为系统调用函数,用于实时获取用户对触摸屏设备的划屏方向及划屏速度;
缓存空间划分模块,用于将已分配给文档的缓存空间划分为前向缓存空间和后向缓存空间;
缓存空间分配模块,用于当所述划屏方向为前向划屏时,分配更多的缓存空间给所述前向缓存空间,所述划屏速度的值越大,分配的所述前向缓存空间越大;反之,当所述划屏方向为后向划屏时,分配更多的缓存空间给所述后向缓存空间,所述划屏速度的值越大,分配的所述后向缓存空间越大。
其中,定义向下划屏为前向划屏。
其中,定义向上划屏为后向划屏。
其中,所述缓存空间分配模块还包括缓存空间计算模块,其计算缓存空间的方法是:
设时刻t已分配给文档的缓存空间为Mt,其中所述前向缓存空间为Mf、所述后向缓存空间为Mb,所述划屏速度的值和所述划屏方向分别用V的值和正负符号表示,并且所述划屏方向为前向划屏时用正号表示,所述划屏方向为后向划屏时用负号表示,则时刻t文档的缓存空间Mt的分配遵循以下规则:
Mt=Mf+Mb;
Figure PCTCN2015000907-appb-000003
Figure PCTCN2015000907-appb-000004
其中:Vmax为给定的最大划屏速度值,当所述划屏速度的值大于Vmax时按 Vmax处理。
与现有技术相比,本发明的优势体现在:
本发明着重于改进页面缓存动态处理的方法及装置。本发明根据触摸屏的特点,获取的划屏方向和速度,并计算出用于页面处理的前向或后向缓存空间的大小,且在处理过程中,根据划屏方向和划屏速度这两个参数进行调整,实现了对页面缓存的动态分配处理,极大地提高了缓存的利用率,提高了文档处理软件的响应速度等性能,进而极大地提升了用户体验。
附图说明
为了更清楚地说明本发明的技术方案,下面将对实施例或现有技术中的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,亦可根据这些附图获得其他附图。
图1为本发明一实施例的页面缓存动态处理方法流程图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显而易见,本说明书所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有付出创造性劳动的前提下,所获得的所有其他实施例,都属于本发明保护的范围。
请参阅图1,图1为本发明一个实施例的页面缓存动态处理方法流程图。
本发明提供了一种页面缓存动态处理方法,包括以下步骤:
通过调用相关系统函数,实时获取用户操作触摸屏设备时的划屏方向及划屏速度;
将已分配给文档的缓存空间划分为前向缓存空间和后向缓存空间;
当所述划屏方向为前向划屏时,分配更多的缓存空间给所述前向缓存空间,所述划屏速度的值越大,分配的所述前向缓存空间越大;反之,当所述划屏方向为后向划屏时,分配更多的缓存空间给所述后向缓存空间,所述划屏速度的值越大,分配的所述后向缓存空间越大。
在本发明的一个实施例中,定义向下划屏为前向划屏。
在本发明的一个实施例中,定义向上划屏为后向划屏。
在本发明的一个实施例中,设时刻t已分配给文档的缓存空间为Mt,其中 所述前向缓存空间为Mf、所述后向缓存空间为Mb,所述划屏速度的值和所述划屏方向分别用V值和正负符号表示,并且所述划屏方向为前向划屏时用正号表示,所述划屏方向为后向划屏时用负号表示,则时刻t文档的缓存空间Mt的分配遵循以下规则:
Mt=Mf+Mb;
Figure PCTCN2015000907-appb-000005
Figure PCTCN2015000907-appb-000006
其中:Vmax为给定的最大划屏速度值,当所述划屏速度的值大于Vmax时按Vmax处理。
本发明还提供一种页面缓存动态处理装置,包括:
信息获取模块,为系统函数,用于实时获取用户对触摸屏设备的划屏方向及划屏速度;
缓存空间划分模块,用于将已分配给文档的缓存空间划分为前向缓存空间和后向缓存空间;
缓存空间分配模块,用于当所述划屏方向为前向划屏时,分配更多的缓存空间给所述前向缓存空间,所述划屏速度的值越大,分配的所述前向缓存空间越大;反之,当所述划屏方向为后向划屏时,分配更多的缓存空间给所述后向缓存空间,所述划屏速度的值越大,分配的所述后向缓存空间越大。
在本发明的一个实施例中,定义向下划屏为前向划屏。
在本发明的一个实施例中,定义向上划屏为后向划屏。
在本发明的一个实施例中,所述缓存空间分配模块还包括缓存空间计算模块,其计算缓存空间的方法是:
设时刻t已分配给文档的缓存空间为Mt,其中所述前向缓存空间为Mf、所述后向缓存空间为Mb,所述划屏速度的值和所述划屏方向分别用V的值和正负符号表示,并且所述划屏方向为前向划屏时用正号表示,所述划屏方向为后向划屏时用负号表示,则时刻t文档的缓存空间Mt的分配遵循以下规则:
Mt=Mf+Mb;
Figure PCTCN2015000907-appb-000007
Figure PCTCN2015000907-appb-000008
其中:Vmax为给定的最大划屏速度值,当所述划屏速度值大于Vmax时按Vmax处理。
其中,某时刻的页面缓存空间大小根据设备内存大小和文档尺寸、页数等给定,划屏速度的采集基于触摸屏本身,最大划屏速度的设定基于统计意义上的经验值,根据这两个参数,在给定页面缓存空间大小的基础上,可以得到基于划屏速度的最佳缓存空间分配方案。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围。

Claims (8)

  1. 一种页面缓存动态处理方法,其特征在于,包括以下步骤:
    通过调用相关系统函数,实时获取用户操作触摸屏设备时的划屏方向及划屏速度;
    将已分配给文档的缓存空间划分为前向缓存空间和后向缓存空间;
    当所述划屏方向为前向划屏时,分配更多的缓存空间给所述前向缓存空间,所述划屏速度的值越大,分配的所述前向缓存空间越大;反之,当所述划屏方向为后向划屏时,分配更多的缓存空间给所述后向缓存空间,所述划屏速度的值越大,分配的所述后向缓存空间越大。
  2. 根据权利要求1所述的页面缓存动态处理方法,其特征在于,定义向下划屏为前向划屏。
  3. 根据权利要求1所述的页面缓存动态处理方法,其特征在于,定义向上划屏为后向划屏。
  4. 根据权利要求1所述的页面缓存动态处理方法,其特征在于,设时刻t已分配给文档的缓存空间为Mt,其中所述前向缓存空间为Mf、所述后向缓存空间为Mb,所述划屏速度的值和所述划屏方向分别用V值和正负符号表示,并且所述划屏方向为前向划屏时用正号表示,所述划屏方向为后向划屏时用负号表示,则时刻t文档的缓存空间Mt的分配遵循以下规则:
    Mt=Mf+Mb;
    Figure PCTCN2015000907-appb-100001
    Figure PCTCN2015000907-appb-100002
    其中:Vmax为给定的最大划屏速度值,当所述划屏速度的值大于Vmax时按Vmax处理。
  5. 一种页面缓存动态处理装置,其特征在于,包括:
    信息获取模块:为系统函数,用于实时获取用户对触摸屏设备的划屏方向及划屏速度;
    缓存空间划分模块:用于将已分配给文档的缓存空间划分为前向缓存空间和后向缓存空间;
    缓存空间分配模块:用于所述划屏方向为前向划屏时,分配更多的缓存空 间给所述前向缓存空间,所述划屏速度的值越大,分配的前向缓存空间越大;反之,当所述划屏方向为后向划屏时,分配更多的缓存空间给后向缓存空间,所述划屏速度值越大,分配的后向缓存空间越大。
  6. 根据权利要求5所述的页面缓存动态处理装置,其特征在于,定义向下划屏为前向划屏。
  7. 根据权利要求5所述的页面缓存动态处理装置,其特征在于,定义向上划屏为后向划屏。
  8. 根据权利要求5所述的页面缓存动态处理装置,其特征在于,所述缓存空间分配模块还包括缓存空间计算模块,其计算缓存空间的方法是:
    设时刻t已分配给文档的缓存空间为Mt,其中所述前向缓存空间为Mf、所述后向缓存空间为Mb,所述划屏速度的值和所述划屏方向分别用V值和正负符号表示,且所述划屏方向为前向划屏时用正号表示,所述划屏方向为后向划屏时用负号表示,则时刻t文档的缓存空间Mt的分配遵循以下规则:
    Mt=Mf+Mb;
    Figure PCTCN2015000907-appb-100003
    Figure PCTCN2015000907-appb-100004
    其中:Vmax为给定的最大划屏速度值,当所述划屏速度的值大于Vmax时按Vmax处理。
PCT/CN2015/000907 2014-12-25 2015-12-16 一种页面缓存动态处理方法 WO2016101334A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410825901.4A CN105786720A (zh) 2014-12-25 2014-12-25 一种页面缓存动态处理方法
CN201410825901.4 2014-12-25

Publications (1)

Publication Number Publication Date
WO2016101334A1 true WO2016101334A1 (zh) 2016-06-30

Family

ID=56149029

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/000907 WO2016101334A1 (zh) 2014-12-25 2015-12-16 一种页面缓存动态处理方法

Country Status (2)

Country Link
CN (1) CN105786720A (zh)
WO (1) WO2016101334A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840298A (zh) * 2010-02-26 2010-09-22 汉王科技股份有限公司 在电子阅读器中切换显示的方法和装置
CN101882057A (zh) * 2010-07-09 2010-11-10 汉王科技股份有限公司 带有切换按键的电子阅读器
CN104115105A (zh) * 2011-11-28 2014-10-22 亚马逊技术股份有限公司 电子纸显示器上的逐步页过渡

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2687969A3 (en) * 2012-07-16 2015-11-11 Samsung Electronics Co., Ltd Electronic apparatus and control method of the same
CN103472988A (zh) * 2013-08-22 2013-12-25 广东欧珀移动通信有限公司 显示内容切换方法、系统及移动终端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840298A (zh) * 2010-02-26 2010-09-22 汉王科技股份有限公司 在电子阅读器中切换显示的方法和装置
CN101882057A (zh) * 2010-07-09 2010-11-10 汉王科技股份有限公司 带有切换按键的电子阅读器
CN104115105A (zh) * 2011-11-28 2014-10-22 亚马逊技术股份有限公司 电子纸显示器上的逐步页过渡

Also Published As

Publication number Publication date
CN105786720A (zh) 2016-07-20

Similar Documents

Publication Publication Date Title
TWI559217B (zh) 用於記憶體子系統之動態快取及記憶體分配技術
US20160170617A1 (en) Automatic active region zooming
US20120174029A1 (en) Dynamically magnifying logical segments of a view
CN103853320A (zh) 一种信息处理方法以及一种电子设备
US20160063672A1 (en) Electronic device and method for generating thumbnail picture
US10185442B2 (en) Method for controlling display of touchscreen, and mobile device
TWI546665B (zh) 用於圖形處理單元的記憶體映射技術
EP2659452A1 (en) Method and apparatus for providing a mechanism for gesture recognition
CN105046661A (zh) 一种提升视频美颜效率的方法、装置及智能终端
WO2020000971A1 (zh) 切换全局特效的方法、装置、终端设备及存储介质
TWI615807B (zh) 用於記錄在輸入幾何物件粒度上的可視度測試之結果的方法、設備及系統
US20120327126A1 (en) Method and apparatus for causing predefined amounts of zooming in response to a gesture
CN103631435A (zh) 用于控制触摸功能的方法及其电子装置
TW201732496A (zh) 用於經由記憶體時延控制來提供功率效率的系統和方法
CN102625144A (zh) 基于局域网云网络的并行视频处理方法
EP2290508A3 (en) Interactive whiteboard for private use
TWI544422B (zh) 用於平行執行隨機抽樣一致性(ransac)演算法的技術
WO2016101334A1 (zh) 一种页面缓存动态处理方法
CN111507123B (zh) 点读材料的放置方法、装置、点读设备、电子设备及介质
CN104777981A (zh) 信息快速分享方法及装置
US9311490B2 (en) Delivery of contextual data to a computing device while preserving data privacy
CN105808180B (zh) 画面调整方法及系统
CN105867778B (zh) 一种信息处理方法及电子设备
CN105335085A (zh) 用户界面操作方法
CN104252340A (zh) 坐标对应方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15871413

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15871413

Country of ref document: EP

Kind code of ref document: A1