Bullet Comment Processing System Memory Optimization
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The excessive consumption of computing resources, particularly memory resources, caused by a large number of bullet comments in popular videos, leads to inefficiencies and resource wastage.
Innovation Solution
A method and system for processing bullet comments that involves obtaining a video playing page, identifying and deleting expired bullet comment data, and implementing a recycling mechanism to reduce memory usage and avoid re-traversing unnecessary data, thereby optimizing resource utilization.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If a large number of bullet comment data are stored to maintain real-time interaction, then user interaction capability is improved, but memory resource consumption increases
Solution Approach 1:
The patent implements dynamic management of bullet comment data by continuously filtering expired comments based on video playback time. The system dynamically adds new comments and removes expired ones from the data structure, transforming a static storage problem into a dynamic processing solution that maintains optimal memory usage throughout video playback.
Solution Approach 2:
The patent changes the state of bullet comment data by marking comments as expired when their playback time window has passed. By parameterizing comment validity based on timing information, the system can selectively remove unnecessary data while preserving interactive functionality during relevant time periods.
2Reliability
If all bullet comment data are traversed to ensure complete processing, then data processing completeness is improved, but computing time increases
Solution Approach 1:
The patent extracts and removes expired bullet comment data from the processing pipeline before it reaches the rendering stage. By pre-filtering out comments that will never be displayed due to their expired state, the system reduces the amount of data that needs to be traversed and processed, thereby decreasing computing time without sacrificing completeness of relevant data processing.
Solution Approach 2:
The patent performs preliminary filtering of expired comments during the data collection phase rather than during the rendering phase. This preliminary action ensures that only valid, non-expired comments are processed later, avoiding wasted computing cycles on already-expired data while maintaining complete processing of all potentially relevant comments.
Data Source
AI summary
The present disclosure describes techniques of processing bullet comments. The techniques comprise acquiring a page of playing a video to output a video stream; acquiring multiple pieces of bullet comment data associated with the video stream; traversing the multiple pieces of bullet comment data and determining whether the multiple pieces of bullet comment data comprise at least one piece of bullet comment data in an expired state; and deleting the at least one piece of bullet comment data in the expired state from the plurality of pieces of bullet comment data in response to determining that the plurality of pieces of bullet comment data comprise the at least one piece of bullet comment data in the expired state.


