CN113973097A - Message display method, device and storage medium - Google Patents

Message display method, device and storage medium Download PDF

Info

Publication number
CN113973097A
CN113973097A CN202010724255.8A CN202010724255A CN113973097A CN 113973097 A CN113973097 A CN 113973097A CN 202010724255 A CN202010724255 A CN 202010724255A CN 113973097 A CN113973097 A CN 113973097A
Authority
CN
China
Prior art keywords
target message
message data
target
data
display information
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010724255.8A
Other languages
Chinese (zh)
Inventor
李斌
曾楚伟
余晓村
梁百怡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010724255.8A priority Critical patent/CN113973097A/en
Publication of CN113973097A publication Critical patent/CN113973097A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Abstract

The embodiment of the application discloses a message display method, a message display device and a storage medium, wherein the embodiment of the application can acquire target message data; storing the target message data into a cache region; processing the target message data in the cache region to obtain a target message and display information corresponding to the target message; and displaying the target message based on the display information. According to the method, the cache region can be set, the target message data can be acquired and processed at the same time, network and CPU resources are fully utilized, when a client program of communication application is not started to operate for a long time, a large amount of new messages are accumulated on the server and are not collected, if the client program is started again, the large amount of new messages need to be pulled down as soon as possible to be displayed for a user, the efficiency of collecting the messages can be improved by adopting the method, and the user experience is improved.

Description

Message display method, device and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a message display method, apparatus, and storage medium.
Background
In recent years, the process of displaying messages by a communication application generally comprises the steps of acquiring messages, processing messages and displaying messages. The application program does not acquire and process all messages at one time, but acquires and processes the messages in groups, wherein each group comprises 1000 messages, and the like, and is limited by factors such as the memory size of the terminal equipment, the instability of the network and the like. In the prior art, the communication application program must wait for the previous group of messages to be completely processed before starting to acquire the next group of messages, and during the waiting period, the network is idle and cannot be fully utilized. Similarly, the communication application must wait until the message is acquired, during which time the CPU of the terminal device is idle, before the message can be processed.
Therefore, the disadvantages of the prior art solutions result in long time consumption and poor user experience when the communication application receives a large amount of messages.
Disclosure of Invention
In view of this, embodiments of the present application provide a message display method, an apparatus, and a storage medium, which can improve resource utilization rate of a communication application program when obtaining a message, reduce time consumption, and improve user experience.
In a first aspect, an embodiment of the present application provides a message display method, including:
acquiring target message data;
storing the target message data into a cache region;
processing the target message data in the cache region to obtain a target message and display information corresponding to the target message;
and displaying the target message based on the display information.
In one embodiment, the acquiring target message data includes:
and acquiring multiple groups of target message data based on multiple communication channels.
In one embodiment, the method further comprises:
and when the target message data is acquired, triggering to acquire the next group of message data of the target message data.
In an embodiment, the processing the target message data in the cache region to obtain a target message and display information corresponding to the target message includes:
acquiring a target message from the target message data in the cache region;
determining a conversation group identifier corresponding to the target message according to the target message data in the cache region;
based on the conversation group identification corresponding to the target message, establishing association between the target message and the corresponding conversation group;
and taking the target message associated with the session group as the display information.
In an embodiment, the processing the target message data in the cache region to obtain a target message and display information corresponding to the target message further includes:
counting the target messages corresponding to the conversation groups to obtain the statistical parameters corresponding to the conversation groups;
and taking the statistical parameters corresponding to the conversation group as the display information.
In one embodiment, the displaying the target message based on the display information includes:
displaying a conversation message page;
and displaying the target message in the session message page according to the target message associated with the session group.
In an embodiment, the displaying the target message based on the display information further includes:
displaying the statistical parameters corresponding to the conversation group;
when the expansion operation of the conversation group is detected, displaying a conversation message page;
and displaying the target message in the session message page according to the target message associated with the session group.
In an embodiment, the information obtaining method further includes:
acquiring target message data;
when the target message data is acquired, triggering to acquire the next group of message data of the target message data;
when the next group of message data is acquired, processing the target message data to obtain a target message and display information corresponding to the target message;
and displaying the target message based on the display information.
In a second aspect, an embodiment of the present application provides a message display apparatus, including:
an acquisition unit configured to acquire target message data;
the cache unit is used for storing the target message data into a cache region;
the processing unit is used for processing the target message data in the cache region to obtain a target message and display information corresponding to the target message;
and the display unit is used for displaying the target message based on the display information.
In a third aspect, embodiments of the present application provide a storage medium having a computer program stored thereon, which, when run on a computer, causes the computer to perform a message display method as provided in any of the embodiments of the present application.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a storage medium. The computer instructions are read from the storage medium by a processor of the computer device, and the computer instructions are executed by the processor to cause the computer device to perform the method provided in the various alternative implementations of the information display aspect described above.
The method and the device can acquire target message data; storing the target message data into a cache region; processing the target message data in the cache region to obtain a target message and display information corresponding to the target message; and displaying the target message based on the display information. According to the method, the cache region can be set, the target message data can be acquired and processed at the same time, network and CPU resources are fully utilized, when a client program of communication application is not started to operate for a long time, a large amount of new messages are accumulated on the server and are not collected, if the client program is started again, the large amount of new messages need to be pulled down as soon as possible to be displayed for a user, the efficiency of collecting the messages can be improved by adopting the method, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scene of a message display method according to an embodiment of the present invention;
fig. 2a is a schematic flow chart of a message display method according to an embodiment of the present invention;
fig. 2b is another schematic flow chart of a message display method according to an embodiment of the present invention;
fig. 2c is another schematic flow chart of a message display method according to an embodiment of the present invention;
fig. 3a is a schematic structural diagram of a message display apparatus according to an embodiment of the present invention;
fig. 3b is another schematic structural diagram of a message display device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a message display terminal according to an embodiment of the present invention;
fig. 5a is a schematic message display flow diagram of a message display system according to an embodiment of the present invention;
FIG. 5b is a schematic diagram of an interaction structure of a parallel processing module and a serial processing module according to an embodiment of the present invention;
fig. 5c is a schematic structural diagram of a parallel processing module according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a message display method, a message display device and a storage medium.
An embodiment of the present invention provides a message display system, including any one of the message display apparatuses provided in the embodiments of the present invention, where the message display apparatus may be specifically integrated in a terminal, and the terminal may include: a mobile phone, a tablet Computer, a notebook Computer, or a Personal Computer (PC).
In addition, the message display system may also include other devices, such as a server or the like.
For example, referring to fig. 1, a message display system includes a terminal and a server, the terminal and the server being linked through a network. The network includes network entities such as routers and gateways.
The message display method of the embodiment of the invention can be used for the process of displaying messages by a communication application program, and the process usually comprises the steps of acquiring target message data, processing the target message data and displaying the target message. Wherein, pulling the target message data refers to: and pulling the target message data from the server by using a communication protocol negotiated by a communication application program in the terminal and the server. Processing target message data: and after the target message data is pulled down, the communication application program processes the target message data. The target message is then displayed again in the terminal.
For example, referring to fig. 1, the embodiment of the present application may acquire target message data; storing the target message data into a cache region; processing the target message data in the cache region to obtain a target message and display information corresponding to the target message; and displaying the target message based on the display information. According to the method and the device, the cache region can be set, the target message data can be acquired and processed simultaneously, the network and CPU resources are fully utilized, the efficiency is improved, and the user experience is improved.
The above example of fig. 1 is only an example of a system architecture for implementing the embodiment of the present invention, and the embodiment of the present invention is not limited to the system architecture shown in fig. 1, and various embodiments of the present invention are proposed based on the system architecture.
The following are detailed below. The numbers in the following examples are not intended to limit the order of preference of the examples.
The present embodiment will be described from the perspective of a message display apparatus, which may be specifically integrated in a terminal device, which may be a mobile phone, a tablet Computer, a notebook Computer, a Personal Computer (PC), or the like.
As shown in fig. 2a, a message display method is provided, which may be executed by a serial processing module in a terminal device, where the terminal device further includes a parallel processing module, and a specific flow of the message display method is as follows:
101. and acquiring target message data.
Wherein, the target message data refers to the information of the new message accumulated in the server and not received. The target message data at least comprises a target message, and can also comprise information such as a session group identifier corresponding to the target message.
As shown in fig. 5a, the embodiment of the present application uses a "producer-consumer" model to divide the message receiving flow into three parts, and as shown in the figure, the direction of the arrow indicates the flow direction of the message data. The most upstream Puller (producer) plays the role of producer, and is responsible for pulling messages from the server, storing the pulled message data in Buffer, and supplying the Buffer to the Processor (consumer).
In the "producer-consumer" model, the producer and the consumer are two threads (or processes), respectively, and share a buffer of a fixed size. The producer does two things: firstly, manufacturing data and writing when a buffer zone is not full, otherwise waiting; writing data and waking up a consumer to read the data under the condition that the buffer area is empty; the consumer reads out the data when the buffer is not empty, otherwise waits; consuming the data and waking the producer to write the data in case the buffer is full. The model can simultaneously carry out the pulling and processing logic of the message, fully utilize network and CPU resources and improve the efficiency.
In an embodiment, the obtaining target message data may further include the following steps:
and acquiring multiple groups of target message data based on multiple communication channels.
When there are too many messages on the server, the client needs to be split into multiple groups to pull. The technical scheme of the embodiment may adopt a concurrent pull strategy, that is, messages of different batches are pulled simultaneously, so as to fully utilize the network bandwidth. As shown in fig. 5b, assuming that there are 10000 messages on the server, there are 10 groups of messages per 1000 messages. The Puller (producer) of the application program uses 5 connections to pull from the server at the same time, and after pulling, the Puller (producer) is stored in a Buffer uniformly.
In one embodiment, the method further comprises the following steps:
and when the target message data is acquired, triggering to acquire the next group of message data of the target message data.
In the embodiment shown in fig. 5b, after each connection has pulled the current batch, the remaining batches are pulled immediately without waiting until all 10 batches have been pulled. The messages of different batches refer to messages of different groups, one batch of messages is pulled at one time, all the messages pulled by the batch are in one group, the other batch of messages are pulled next time, and all the messages pulled by the other batch are in one group.
102. And storing the target message data into a buffer area.
The buffer area is used as an intermediate role between a producer and a consumer, and is used for providing a temporary storage area to temporarily store message data, buffering the speed difference between message pulling and message processing.
Due to the Buffer, the producer and the Processor can operate independently without depending on the result of the other. For example, a Puller (producer) may continuously pull a message from a server, and it only needs to put the pulled data into a Buffer, and does not care whether the message is completely processed; similarly, as long as there is data in the Buffer, the Processor can fetch and process the data from the Buffer without concern as to whether the message is still being pulled.
103. And processing the target message data in the cache region to obtain a target message and display information corresponding to the target message.
In the present embodiment, the processing of the target message data is performed by a Processor (consumer) which is in charge of processing the message data ready in the Buffer as a consumer role.
In an embodiment, the processing the target message data in the cache region to obtain a target message and display information corresponding to the target message may further include the following steps:
acquiring a target message from the target message data in the cache region;
determining a conversation group identifier corresponding to the target message according to the target message data in the cache region;
based on the conversation group identification corresponding to the target message, establishing association between the target message and the corresponding conversation group;
and taking the target message associated with the session group as the display information.
Wherein a session group refers to a group of communication sessions. The conversation group comprises a single chat session and a group chat session, the single chat session comprises two users, the group chat session comprises at least three users, and the users can publish messages in the conversation group.
Wherein the session group identification is information for distinguishing different session groups. Each message corresponds to a conversation group, which means that the message is published in the corresponding conversation group.
The target message is associated with the conversation group identification to facilitate subsequent display of the target message in the corresponding conversation group.
In an embodiment, the processing the target message data in the cache region to obtain a target message and display information corresponding to the target message may further include the following steps:
counting the target messages corresponding to the conversation groups to obtain the statistical parameters corresponding to the conversation groups;
and taking the statistical parameters corresponding to the conversation group as the display information.
The statistical parameter refers to statistical information used for representing target messages in the conversation group, and may be expressed as the number of target messages.
When the client program does not start running for a long time, a user has a large amount of new messages accumulated on the server and is not received. When the client program is started again, a large number of new messages need to be pulled down as soon as possible to be displayed to the user, and the new unread messages are the target messages.
104. And displaying the target message based on the display information.
In an embodiment, the displaying the target message based on the display information may include:
displaying a conversation message page;
and displaying the target message in the session message page according to the target message associated with the session group.
Wherein the display information is information required when the target message is displayed. The session message page refers to a chat page corresponding to the session group, and the page can display the messages published in the session group by the members of the session group.
In this embodiment, the terminal first uses the target message associated with the session group as the display information, and then displays the target message in the session message page according to the target message associated with the session group.
In an embodiment, the displaying the target message based on the display information may further include:
displaying the statistical parameters corresponding to the conversation group;
when the expansion operation of the conversation group is detected, displaying a conversation message page;
and displaying the target message in the session message page according to the target message associated with the session group.
And the terminal takes the target message associated with the conversation group and the statistical parameters corresponding to the conversation group as the display information.
In this embodiment, a session group page may be displayed first, where the session group page includes at least one session group control, and a corresponding statistical parameter (e.g., a target message number) is displayed near each session group control. Wherein, the conversation group control refers to an instruction interface for expanding a page for displaying the conversation messages. The command interface may take the form of a selection box, icon, button, etc.
And when the unfolding operation of the user for the conversation group is detected, displaying a conversation message page. For example, when the conversation group control is clicked, the terminal receives an instruction, displays a conversation message page according to the instruction, and displays a corresponding message in the conversation message page.
As can be seen from the above, in the embodiment of the present application, target message data may be acquired; storing the target message data into a cache region; processing the target message data in the cache region to obtain a target message and display information corresponding to the target message; and displaying the target message based on the display information. According to the method and the device, the cache region can be set, the target message data can be acquired and processed at the same time, and network and CPU resources are fully utilized, so that the message receiving efficiency is improved, and the user experience is improved.
According to the method described in the foregoing embodiment, the message display apparatus is specifically integrated in the terminal device, which is described in further detail below.
Referring to fig. 2b, a specific flow of the message display method according to the embodiment of the present invention is as follows:
201. the terminal acquires multiple groups of target message data based on multiple communication channels.
In this embodiment, there are too many messages on the server, so the clients of the messaging application need to be divided into multiple groups to pull. The embodiment adopts a concurrent pulling strategy, namely messages of different batches are pulled simultaneously, so as to fully utilize the network bandwidth.
For example, referring to fig. 5b, there are 10000 messages on the server, and there are 10 groups of messages in each group of 1000 messages. The Puller (producer) of an application can pull from the server simultaneously using 5 connections. Each connection is a communication channel.
202. And the terminal stores the target message data into a buffer area.
And after pulling the target information, the terminal stores the target information into a Buffer (cache area) in a unified manner. The puller of the terminal can continuously pull the message from the server, and the puller only needs to put the pulled data into a Buffer area, and does not need to care whether the message is processed or not.
Referring to fig. 5b, after each connection pulls the current batch, the remaining batches are pulled immediately without waiting until all 10 batches are pulled.
203. And the terminal acquires the target message from the target message data in the cache region.
A Processor (consumer) of the terminal may obtain the target message data from the buffer and obtain the target message from the target message data. As long as there is data in the Buffer, the Processor (consumer) can fetch and process it without concern if the message is still being pulled.
204. And the terminal determines the conversation group identification corresponding to the target message according to the target message data in the cache region.
The terminal may determine, according to the target message data, a session group identifier corresponding to the target message, and establish association between the target message and a corresponding session group based on the session group information corresponding to the target message.
205. And the terminal displays the target message according to the conversation group identification corresponding to the target message.
The terminal can display the conversation group identification corresponding to the target message, display a conversation message page, and display the corresponding target message in the conversation message page.
As can be seen from the above, in the embodiment of the present application, target message data may be acquired; storing the target message data into a cache region; processing the target message data in the cache region to obtain a target message and display information corresponding to the target message; and displaying the target message based on the display information. According to the method and the device, the cache region can be set, the target message data can be acquired and processed at the same time, and network and CPU resources are fully utilized, so that the message receiving efficiency is improved, and the user experience is improved.
As shown in fig. 2c, the present application further provides a message display method, where the method may be executed by a serial processing module in a terminal device, the terminal device further includes a parallel processing module, and a specific flow of the message display method is as follows:
301. and acquiring target message data.
Wherein, the target message data refers to the information of the new message accumulated in the server and not received. The target message data at least comprises a target message, and can also comprise information such as a session group identifier corresponding to the target message.
The embodiment of the application adopts a multi-stream pipeline type model. The Puller plays a producer role, and is responsible for pulling messages from the server and supplying the messages to the Processor (consumer).
302. And when the target message data is acquired, triggering to acquire the next group of message data of the target message data.
Referring to fig. 5c, a "multi-stream pipeline type" model is adopted, a group of messages is pulled while a group of messages is processed, so as to achieve the purpose of parallelism, and since the order of processing the messages is guaranteed (i.e., the second group can be processed only after the first group is processed), the technical solution of this embodiment can only be parallel between two groups of messages, and the technical solution of this embodiment cannot be applied to pull multiple groups of messages at the same time.
303. And processing the target message data to obtain a target message and display information corresponding to the target message when the next group of message data is obtained.
In the present embodiment, the processing of the target message data is performed by a Processor (consumer) that takes charge of processing the pulled target message data as a consumer role.
In an embodiment, the target message and the correspondence between the target messages can be obtained according to the target message data, and the target message is associated with the conversation group identifier, so that the target message can be conveniently displayed in the corresponding conversation group.
In an implementation, the method may further include displaying statistical parameters (such as the number of unread messages) corresponding to each conversation group, and processing the target message data in the cache region to obtain a target message and display information corresponding to the target message, and may further include the following steps:
counting the target messages corresponding to the conversation groups to obtain the statistical parameters corresponding to the conversation groups;
and taking the statistical parameters corresponding to the conversation group as the display information.
304. And displaying the target message based on the display information.
The terminal can display the conversation group identification corresponding to the target message, display a conversation message page, and display the corresponding target message in the conversation message page.
In an embodiment, the terminal may further display a session group page, where the session group page includes at least one session group control, display corresponding statistical parameters near each session group control, and display a session message page when detecting that a user performs an expansion operation on a session group.
In order to better implement the method, an embodiment of the present invention further provides a message display apparatus, where the message display apparatus may be specifically integrated in an electronic device, and the electronic device may be a terminal device, a server, a personal computer, or the like.
For example, in this embodiment, the method in the embodiment of the present invention will be described in detail by taking the example that the message display apparatus is integrated in the terminal device.
For example, as shown in fig. 3a, the message display apparatus may include a data acquisition unit 401, a buffer unit 402, a processing unit 403, and a display unit 404. The following were used:
(1) an obtaining unit 401, configured to obtain target message data;
(2) a buffer unit 402, configured to store the target message data in a buffer;
(3) a processing unit 403, configured to process the target message data in the cache region to obtain a target message and display information corresponding to the target message;
(4) a display unit 404, configured to display the target message based on the display information.
In an embodiment, the obtaining unit 401 may specifically be configured to:
and acquiring multiple groups of target message data based on multiple communication channels.
In an embodiment, the obtaining unit 401 may further be configured to:
and when the target message data is acquired, triggering to acquire the next group of message data of the target message data.
In an embodiment, the processing unit 403 may specifically be configured to:
acquiring a target message from the target message data in the cache region;
determining a conversation group identifier corresponding to the target message according to the target message data in the cache region;
based on the conversation group identification corresponding to the target message, establishing association between the target message and the corresponding conversation group;
and taking the target message associated with the session group as the display information.
In an embodiment, the processing unit 403 may be further specifically configured to:
counting the target messages corresponding to the conversation groups to obtain the statistical parameters corresponding to the conversation groups;
and taking the statistical parameters corresponding to the conversation group as the display information.
In an embodiment, the display unit 404 may be specifically configured to:
displaying a conversation message page;
displaying the target message in the session message page according to the target message associated with the session group;
alternatively, the first and second electrodes may be,
displaying the statistical parameters corresponding to the conversation group;
when the expansion operation of the conversation group is detected, displaying a conversation message page;
and displaying the target message in the session message page according to the target message associated with the session group.
In another embodiment, referring to fig. 3b, the message display apparatus may further include a first obtaining unit 401, a second obtaining unit 402, a processing unit 403, and a display unit 404, as follows:
(1) a first obtaining unit 401, configured to obtain target message data;
(2) a second obtaining unit 402, configured to trigger obtaining of a next group of message data of the target message data when the target message data is obtained;
(3) a processing unit 403, configured to process the target message data to obtain a target message and display information corresponding to the target message when the next group of message data is obtained;
(4) a display unit 404, configured to display the target message based on the display information.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, in the embodiment of the present invention, the obtaining unit obtains the target message data; the cache unit stores the target message data into a cache region; the processing unit processes the target message data in the cache region to obtain a target message and display information corresponding to the target message; the display unit displays the target message based on the display information. According to the method, the cache region can be set, the target message data can be acquired and processed at the same time, network and CPU resources are fully utilized, when a client program of communication application is not started to operate for a long time, a large amount of new messages are accumulated on the server and are not collected, if the client program is started again, the large amount of new messages need to be pulled down as soon as possible to be displayed for a user, the efficiency of collecting the messages can be improved by adopting the method, and the user experience is improved.
The embodiment of the application further provides a terminal device, and the terminal device can be a mobile phone, a tablet computer, a micro processing box, an unmanned aerial vehicle or an image acquisition device and the like. As shown in fig. 4, it shows a schematic structural diagram of a terminal device according to an embodiment of the present application, specifically:
the terminal device may include components such as a processor 501 of one or more processing cores, memory 502 of one or more storage media, a power supply 503, an input module 504, and a communication module 505. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 4 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 501 is a control center of the terminal device, connects various parts of the whole terminal device by various interfaces and lines, and executes various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 502 and calling data stored in the memory 502, thereby performing overall monitoring of the terminal device. In some embodiments, processor 501 may include one or more processing cores, for example, processor 501 may include two processing cores, a parallel processing module and a serial processing module; in some embodiments, processor 501 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 501.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and message display by operating the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
The terminal device further includes a power source 503 for supplying power to each component, and in some embodiments, the power source 503 may be logically connected to the processor 501 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The power supply 503 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The terminal device may also include an input module 504, where the input module 504 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
The terminal device may also include a communication module 505. in some embodiments, the communication module 505 may include a wireless sub-module by which the terminal device may wirelessly transmit over short distances to provide wireless broadband internet access. For example, the communication module 505 can be used to assist a user in emailing, browsing web pages, accessing streaming media, and the like.
Although not shown, the terminal device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 501 in the terminal device loads the executable file corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 501 runs the application program stored in the memory 502, so as to implement various functions as follows:
acquiring target message data;
storing the target message data into a cache region;
processing the target message data in the cache region to obtain a target message and display information corresponding to the target message;
and displaying the target message based on the display information.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, the present embodiment can acquire target message data; storing the target message data into a cache region; processing the target message data in the cache region to obtain a target message and display information corresponding to the target message; and displaying the target message based on the display information. When a client program of the communication application is not started to operate for a long time and a large number of new messages are accumulated on the server and are not received, if the client program is started again, the large number of new messages need to be pulled down as soon as possible to be displayed to a user.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, which may be stored in a storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the message display methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
acquiring target message data;
storing the target message data into a cache region;
processing the target message data in the cache region to obtain a target message and display information corresponding to the target message;
and displaying the target message based on the display information.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any message display method provided in the embodiments of the present application, beneficial effects that can be achieved by any message display method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above detailed description is provided for a message display method, a message display device, and a storage medium according to embodiments of the present application, and a specific example is applied in the detailed description to explain the principles and implementations of the present application, and the description of the above embodiments is only used to help understanding the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An information acquisition method, comprising:
acquiring target message data;
storing the target message data into a cache region;
processing the target message data in the cache region to obtain a target message and display information corresponding to the target message;
and displaying the target message based on the display information.
2. The information acquisition method according to claim 1, wherein said acquiring target message data includes:
and acquiring multiple groups of target message data based on multiple communication channels.
3. The information acquisition method according to claim 1, further comprising:
and when the target message data is acquired, triggering to acquire the next group of message data of the target message data.
4. The information acquisition method according to claim 1, wherein the processing the target message data in the cache area to obtain a target message and display information corresponding to the target message includes:
acquiring a target message from the target message data in the cache region;
determining a conversation group identifier corresponding to the target message according to the target message data in the cache region;
based on the conversation group identification corresponding to the target message, establishing association between the target message and the corresponding conversation group;
and taking the target message associated with the session group as the display information.
5. The information acquisition method according to claim 4, wherein the processing the target message data in the cache region to obtain a target message and display information corresponding to the target message further comprises:
counting the target messages corresponding to the conversation groups to obtain the statistical parameters corresponding to the conversation groups;
and taking the statistical parameters corresponding to the conversation group as the display information.
6. The information acquisition method according to claim 4, wherein said displaying the target message based on the display information includes:
displaying a conversation message page;
and displaying the target message in the session message page according to the target message associated with the session group.
7. The information acquisition method according to claim 5, wherein the displaying the target message based on the display information further comprises:
displaying the statistical parameters corresponding to the conversation group;
when the expansion operation of the conversation group is detected, displaying a conversation message page;
and displaying the target message in the session message page according to the target message associated with the session group.
8. The information acquisition method according to claim 1, characterized by further comprising:
acquiring target message data;
when the target message data is acquired, triggering to acquire the next group of message data of the target message data;
when the next group of message data is acquired, processing the target message data to obtain a target message and display information corresponding to the target message;
and displaying the target message based on the display information.
9. An information display device characterized by comprising:
an acquisition unit configured to acquire target message data;
the cache unit is used for storing the target message data into a cache region;
the processing unit is used for processing the target message data in the cache region to obtain a target message and display information corresponding to the target message;
and the display unit is used for displaying the target message based on the display information.
10. A storage medium having stored thereon a computer program, characterized in that, when the computer program is run on a computer, it causes the computer to execute a message display method according to any one of claims 1 to 8.
CN202010724255.8A 2020-07-24 2020-07-24 Message display method, device and storage medium Pending CN113973097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010724255.8A CN113973097A (en) 2020-07-24 2020-07-24 Message display method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010724255.8A CN113973097A (en) 2020-07-24 2020-07-24 Message display method, device and storage medium

Publications (1)

Publication Number Publication Date
CN113973097A true CN113973097A (en) 2022-01-25

Family

ID=79585647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010724255.8A Pending CN113973097A (en) 2020-07-24 2020-07-24 Message display method, device and storage medium

Country Status (1)

Country Link
CN (1) CN113973097A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683329A (en) * 2015-02-06 2015-06-03 成都品果科技有限公司 Data caching method and system for mobile equipment client
CN104980472A (en) * 2014-04-10 2015-10-14 腾讯科技(深圳)有限公司 Network traffic control method and device
CN105871703A (en) * 2016-06-03 2016-08-17 用友网络科技股份有限公司 Push and pull combined instant communication message acquisition system and method
CN109391852A (en) * 2018-09-14 2019-02-26 广州虎牙信息科技有限公司 A kind of message display method, device, equipment and storage medium
CN109525486A (en) * 2018-11-27 2019-03-26 北京微播视界科技有限公司 Conversation message loading method, device, electronic equipment and the medium of instant messaging
WO2019076372A1 (en) * 2017-10-20 2019-04-25 维沃移动通信有限公司 Session message display method, and mobile terminal
CN110365739A (en) * 2019-06-05 2019-10-22 平安科技(深圳)有限公司 Message synchronization method, apparatus, computer installation and computer readable storage medium
CN110543269A (en) * 2019-09-06 2019-12-06 腾讯科技(深圳)有限公司 Message processing method and device, terminal equipment and storage medium
CN111158831A (en) * 2019-12-30 2020-05-15 腾讯科技(深圳)有限公司 Data processing method, device, equipment and medium based on instant messaging application
CN111371854A (en) * 2020-02-24 2020-07-03 南京甄视智能科技有限公司 Method and device for sending offline message in Internet of things, storage medium and server

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980472A (en) * 2014-04-10 2015-10-14 腾讯科技(深圳)有限公司 Network traffic control method and device
CN104683329A (en) * 2015-02-06 2015-06-03 成都品果科技有限公司 Data caching method and system for mobile equipment client
CN105871703A (en) * 2016-06-03 2016-08-17 用友网络科技股份有限公司 Push and pull combined instant communication message acquisition system and method
WO2019076372A1 (en) * 2017-10-20 2019-04-25 维沃移动通信有限公司 Session message display method, and mobile terminal
CN109391852A (en) * 2018-09-14 2019-02-26 广州虎牙信息科技有限公司 A kind of message display method, device, equipment and storage medium
CN109525486A (en) * 2018-11-27 2019-03-26 北京微播视界科技有限公司 Conversation message loading method, device, electronic equipment and the medium of instant messaging
CN110365739A (en) * 2019-06-05 2019-10-22 平安科技(深圳)有限公司 Message synchronization method, apparatus, computer installation and computer readable storage medium
CN110543269A (en) * 2019-09-06 2019-12-06 腾讯科技(深圳)有限公司 Message processing method and device, terminal equipment and storage medium
CN111158831A (en) * 2019-12-30 2020-05-15 腾讯科技(深圳)有限公司 Data processing method, device, equipment and medium based on instant messaging application
CN111371854A (en) * 2020-02-24 2020-07-03 南京甄视智能科技有限公司 Method and device for sending offline message in Internet of things, storage medium and server

Similar Documents

Publication Publication Date Title
JP2021111359A (en) Audio wakeup method and apparatus
CN107197342B (en) Data processing method, intelligent terminal and storage medium
CN110362401A (en) Data run the member host in batch method, apparatus, storage medium and cluster
JP2013542491A (en) Mobile device and method for publishing and managing a set of performance scaling algorithms
JP2010237787A (en) Program, information processing apparatus, and state output method
CN109033814A (en) intelligent contract triggering method, device, equipment and storage medium
CN113825010A (en) Direct broadcast medal display method and device, storage medium and computer equipment
CN113452774A (en) Message pushing method, device, equipment and storage medium
CN110286954B (en) Application program starting method and device and storage medium
CN114217759A (en) Screen projection method and device, storage medium and electronic equipment
CN114143371A (en) Screen projection method and device, storage medium and electronic equipment
CN110650546B (en) File transmission method, device, storage medium and terminal
CN111669647B (en) Real-time video processing method, device and equipment and storage medium
WO2023221941A1 (en) Image processing method and apparatus, device, and storage medium
CN113973097A (en) Message display method, device and storage medium
CN113535371A (en) Method and device for multithreading asynchronous loading of resources
WO2023193527A1 (en) Thread execution method and apparatus, electronic device, and computer-readable storage medium
CN114363704B (en) Video playing method, device, equipment and storage medium
CN113094165A (en) Method for increasing speed of loading application program at cloud end
CN116627521A (en) Service module preloading method, skipping method, device and storage medium
CN114146406A (en) Method and device for allocating operation resources, electronic equipment and storage medium
CN114338830A (en) Data transmission method and device, computer readable storage medium and computer equipment
CN113747100B (en) Audio and video call method and device, storage medium and electronic equipment
WO2024007710A1 (en) Animation playing method and apparatus, and electronic device and computer-readable storage medium
CN113765886A (en) Multimedia playing method, device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination