Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Scalable text generation method

A text and file technology, applied in the field of scalable text generation, can solve problems such as inability to utilize server CPU resources more efficiently, increase development and maintenance costs for developers, and low server CPU utilization, so as to achieve efficient development methods and reduce Development and maintenance costs, efficient preparations

Active Publication Date: 2015-09-02
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF5 Cites 43 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] 1. If the template file has a lot of content, the entire template file will be very long, which will increase the development and maintenance costs of developers
[0011] 2. The process of preparing data in the Java background is single-threaded. If the template file requires a lot of data, the logic of Java background assembly data will take a long time to prepare all the data, and then call the rendering method, so the page generation time is very long
[0012] 3. If the CPU utilization rate of the server is low, the process of rendering text must still follow the process of preparing data and then rendering in sequence, which cannot make more efficient use of the server's CPU resources

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Scalable text generation method
  • Scalable text generation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0029] figure 1 is a schematic diagram of main steps of a scalable text generation method according to an embodiment of the present invention. Such as figure 1 As shown, a scalable text generation method according to the embodiment of the present invention mainly includes the following steps S11 to S14.

[0030] Step S11: Decompose the entire template file into multiple...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a scalable text generation method. By means of the method, text files can be rendered faster and CPU resources of a server are used more efficiently. The method includes the steps that a whole template file is decomposed into multiple subtemplate files; a rendering task list is generated and comprises multiple rendering tasks, the rendering tasks are used for being associated with the subtemplate files corresponding to the rendering tasks, and logic of preparation data before rendering is realized; multi-thread rendering is carried out on the rendering tasks; rendering results of the rendering tasks are spliced into texts. By means of the technical scheme, development and maintenance cost of the template file is reduced, data preparation is more efficient, and the CPU resources of the server are used more reasonably.

Description

technical field [0001] The invention relates to the technical field of computer networks, in particular to a scalable text generation method. Background technique [0002] Text files are an important class of computer files. Due to their simple structure, text files are widely used to record information. In order to improve development efficiency and make code reusable, a template engine is introduced when generating text. After using the template engine, the function of logic separation can be achieved, so that the program application logic and page display logic are separated, allowing program developers Focus on the control of data or the achievement of functions; while visual designers can focus on page layout to make the page look more professional. [0003] Take the Java language to generate a common text—HTML page as an example. When using the Java language to generate HTML pages, under normal circumstances, developers will not directly write the entire HTML page, b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/46
Inventor 刘锟洋
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products