ArcGIS Pro uses and integrates a wide variety of data types, such as vector and raster data. It is important to reduce the file size before publishing to minimize publishing time as well as credit usage.
The articles referenced below are some best practices to reduce file size before publishing from ArcGIS Pro.
Rebuild or recalculate the spatial index
This method reduces the size of the indexing file used to maintain a feature class's spatial index. It also improves data display and spatial query performances. Refer to ArcGIS Pro: Rebuild or recalculate the spatial index for steps to do this.
Compact the geodatabase
Frequent editing of a geodatabase increases the file size. Thus, compacting the geodatabase cleans storage and unused space to efficiently maintain the geodatabase file size. Refer to ArcGIS Pro: Compact file geodatabases for steps to do this.
Generalizing features removes extraneous vertices by simplifying the input features using a specified maximum offset tolerance. This method returns output features containing a subset of the original input vertices. Refer to ArcGIS Pro: Generalize (Editing) for more information.
Note: The Generalize (Editing) tool is only available with a Standard or an Advanced license.
Compress the file geodatabase data
Compressing tables and file geodatabase feature classes to a read-only format reduces data storage requirements. Once compressed, display and query performance are comparable to decompressed data, which improves the performance in some operations. Refer to ArcGIS Pro: Compress the file geodatabase data for more information.