Splash Ad Caching via JSON and Video Segmentation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The increasing number of splash advertisements in client applications leads to a reduction in startup speed and delay in reading native splash advertisements due to the need for preloading large data, resulting in reduced fluency.
Innovation Solution
A method for caching content that involves acquiring JSON data, determining identification information, grouping and storing it, performing video preloading, and storing address information in memory and disk, allowing for directional storage and retrieval based on identification information to improve startup speed and fluency.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If the client preloads increasing data of splash advertisements to support more advertisements, then the advertising capability is improved, but the startup speed of the client is reduced
Solution Approach 1:
The patent applies preliminary action by preloading only the necessary portions of splash advertisement data (JSON data and video data) into memory before the client starts, rather than loading all advertisement data. This allows the client to have advertising capability ready while maintaining fast startup speed, as only essential data is preloaded into memory for immediate use.
2Adaptability or versatility
If the client preloads increasing data of splash advertisements to support more advertisements, then the advertising capability is improved, but the fluency of native splash advertisements is reduced
Solution Approach 1:
The patent applies segmentation by dividing splash advertisement data into two distinct parts: JSON data (containing advertisement metadata and configuration) and video data (containing the actual advertisement content). This segmentation allows the system to load only the necessary JSON data into memory for quick access, while video data can be loaded on-demand or partially preloaded, thereby improving fluency while maintaining advertising capability.
3Speed
If all video data is cached in memory to ensure fast access, then the reading speed is improved, but the memory consumption increases
Solution Approach 1:
The patent applies local quality by differentiating the storage and access strategy for different types of data. JSON data, which is small in size and frequently accessed, is loaded entirely into memory for fast access. Video data, which is large in size but not always needed immediately, is stored in external storage and loaded into memory only when required. This localized optimization balances reading speed with memory consumption.
Data Source
AI summary
A method for caching content, a method for reading content, a client, and a storage medium are provided. The method for caching content includes: acquiring JSON data corresponding to content to be delivered, and determining identification information corresponding to the JSON data; grouping the JSON data and storing the grouped JSON data according to the identification information to obtain a memory list corresponding to the identification information, and writing the JSON data to a target disk according to the identification information and the memory list; performing video preloading processing on the content to be delivered according to the JSON data to obtain preloaded video data, and determining address information corresponding to the preloaded video data; and storing the address information in the memory list and the target disk according to the identification information, to complete caching of the JSON data and the preloaded video data.


